diff --git a/erpnext/patches/v7_0/repost_future_gle_for_purchase_invoice.py b/erpnext/patches/v7_0/repost_future_gle_for_purchase_invoice.py index ebc1e694f0..f0874a18cd 100644 --- a/erpnext/patches/v7_0/repost_future_gle_for_purchase_invoice.py +++ b/erpnext/patches/v7_0/repost_future_gle_for_purchase_invoice.py @@ -9,6 +9,8 @@ from erpnext.controllers.stock_controller import get_warehouse_account, update_g def execute(): if not cint(frappe.defaults.get_global_default("auto_accounting_for_stock")): return + + frappe.reload_doc('accounts', 'doctype', 'sales_invoice') frappe.reload_doctype("Purchase Invoice") wh_account = get_warehouse_account()