fix(patch): reload loyalty program in healthcare patch

This commit is contained in:
Nabin Hait 2018-09-06 14:26:52 +05:30
parent 2350dc26f6
commit b94008dab3

View File

@ -12,8 +12,10 @@ sales_invoice_referenced_doc = {
}
def execute():
healthcare_custom_field_in_sales_invoice()
frappe.reload_doc('accounts', 'doctype', 'loyalty_program')
frappe.reload_doc('accounts', 'doctype', 'sales_invoice_item')
healthcare_custom_field_in_sales_invoice()
for si_ref_doc in sales_invoice_referenced_doc:
if frappe.db.exists('DocType', si_ref_doc):
frappe.reload_doc(get_doctype_module(si_ref_doc), 'doctype', scrub(si_ref_doc))