mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
reload account in patch
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user