[setup] don't premake company fixtures

This commit is contained in:
Prateeksha Singh 2018-11-13 15:56:15 +05:30
parent b422458224
commit dabf349599
2 changed files with 5 additions and 4 deletions

View File

@ -11,9 +11,10 @@ from erpnext.accounts.utils import get_fiscal_year
from frappe.utils import today
def setup(company=None, patch=True):
setup_company_independent_fixtures()
if not patch:
update_address_template()
make_fixtures()
make_fixtures(company)
# TODO: for all countries
def setup_company_independent_fixtures():

View File

@ -244,9 +244,9 @@ def install(country=None):
set_more_defaults()
path = frappe.get_app_path('erpnext', 'regional', frappe.scrub(country))
if os.path.exists(path.encode("utf-8")):
frappe.get_attr("erpnext.regional.{0}.setup.setup_company_independent_fixtures".format(frappe.scrub(country)))()
# path = frappe.get_app_path('erpnext', 'regional', frappe.scrub(country))
# if os.path.exists(path.encode("utf-8")):
# frappe.get_attr("erpnext.regional.{0}.setup.setup_company_independent_fixtures".format(frappe.scrub(country)))()
def set_more_defaults():