[setup][init] setup as document records

This commit is contained in:
Prateeksha Singh
2018-11-12 17:19:56 +05:30
parent d630370183
commit 39b8765961
3 changed files with 241 additions and 108 deletions

View File

@@ -11,14 +11,17 @@ from erpnext.accounts.utils import get_fiscal_year
from frappe.utils import today
def setup(company=None, patch=True):
if not patch:
update_address_template()
make_fixtures()
# TODO: for all countries
def setup_company_independent_fixtures():
make_custom_fields()
add_permissions()
add_custom_roles_for_reports()
frappe.enqueue('erpnext.regional.india.setup.add_hsn_sac_codes', now=frappe.flags.in_test)
add_print_formats()
if not patch:
update_address_template()
make_fixtures(company)
def update_address_template():
with open(os.path.join(os.path.dirname(__file__), 'address_template.html'), 'r') as f: