[patch] Reload Purchase Invoice in patch
This commit is contained in:
parent
b9376641af
commit
2275cd15e6
@ -10,6 +10,7 @@ def execute():
|
|||||||
if not cint(frappe.defaults.get_global_default("auto_accounting_for_stock")):
|
if not cint(frappe.defaults.get_global_default("auto_accounting_for_stock")):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
frappe.reload_doctype("Purchase Invoice")
|
||||||
wh_account = get_warehouse_account()
|
wh_account = get_warehouse_account()
|
||||||
|
|
||||||
for pi in frappe.get_all("Purchase Invoice", filters={"docstatus": 1, "update_stock": 1}):
|
for pi in frappe.get_all("Purchase Invoice", filters={"docstatus": 1, "update_stock": 1}):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user