fix(patch): create healthcare patch only if domain activated

This commit is contained in:
Nabin Hait 2018-09-07 18:44:01 +05:30
parent 2cc7eb1e94
commit 73165ebd33
2 changed files with 6 additions and 3 deletions

View File

@ -15,6 +15,9 @@ def execute():
frappe.reload_doc('accounts', 'doctype', 'loyalty_program')
frappe.reload_doc('accounts', 'doctype', 'sales_invoice_item')
if "healthcare" not in frappe.get_active_domains():
return
healthcare_custom_field_in_sales_invoice()
for si_ref_doc in sales_invoice_referenced_doc:
if frappe.db.exists('DocType', si_ref_doc):

View File

@ -837,7 +837,7 @@
"label": "Create Chart Of Accounts Based On",
"length": 0,
"no_copy": 0,
"options": "\nStandard Template\nExisting Company\n\n\n",
"options": "\nStandard Template\nExisting Company",
"permlevel": 0,
"precision": "",
"print_hide": 0,
@ -871,7 +871,7 @@
"label": "Chart Of Accounts Template",
"length": 0,
"no_copy": 1,
"options": "\n\n\n",
"options": "",
"permlevel": 0,
"precision": "",
"print_hide": 0,
@ -2836,7 +2836,7 @@
"istable": 0,
"max_attachments": 0,
"menu_index": 0,
"modified": "2018-09-01 16:03:30.716918",
"modified": "2018-09-07 16:03:30.716918",
"modified_by": "cave@aperture.com",
"module": "Setup",
"name": "Company",