From 96c4252762ce039c6516874524ebbed261cee957 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 13 May 2015 14:55:12 +0530 Subject: [PATCH] reload account in patch --- erpnext/patches/v4_2/fix_gl_entries_for_stock_transactions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/patches/v4_2/fix_gl_entries_for_stock_transactions.py b/erpnext/patches/v4_2/fix_gl_entries_for_stock_transactions.py index b7bd90e8106..73a56a8e987 100644 --- a/erpnext/patches/v4_2/fix_gl_entries_for_stock_transactions.py +++ b/erpnext/patches/v4_2/fix_gl_entries_for_stock_transactions.py @@ -8,6 +8,8 @@ from frappe.utils import flt def execute(): from erpnext.utilities.repost_stock import repost repost(allow_zero_rate=True, only_actual=True) + + frappe.reload_doctype("Account") warehouse_account = frappe.db.sql("""select name, master_name from tabAccount where ifnull(account_type, '') = 'Warehouse'""")