reload account in patch

This commit is contained in:
Nabin Hait 2015-05-13 14:55:12 +05:30
parent f6e4723101
commit 96c4252762

View File

@ -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'""")