From b94008dab3d7a24465cba6060456a07eb0dbb497 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 6 Sep 2018 14:26:52 +0530 Subject: [PATCH] fix(patch): reload loyalty program in healthcare patch --- .../patches/v11_0/redesign_healthcare_billing_work_flow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/patches/v11_0/redesign_healthcare_billing_work_flow.py b/erpnext/patches/v11_0/redesign_healthcare_billing_work_flow.py index 08c3497b06..f8ff015aca 100644 --- a/erpnext/patches/v11_0/redesign_healthcare_billing_work_flow.py +++ b/erpnext/patches/v11_0/redesign_healthcare_billing_work_flow.py @@ -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))