From 0788ee62c1a4a092b15d100a35520fde0c5e1456 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 25 Aug 2016 12:46:34 +0530 Subject: [PATCH] Fixed patch, 'SalesInvoice' object has no attribute 'account_for_change_amount' --- erpnext/patches/v7_0/repost_future_gle_for_purchase_invoice.py | 2 ++ 1 file changed, 2 insertions(+) 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()