reload account in patch
This commit is contained in:
parent
f6e4723101
commit
96c4252762
@ -9,6 +9,8 @@ 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'""")
|
||||
if warehouse_account:
|
||||
|
Loading…
x
Reference in New Issue
Block a user