mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
Merge pull request #6033 from nabinhait/patch_fix_10
[patch] Reload Purchase Invoice in patch. Fixed #6032
This commit is contained in:
@@ -9,7 +9,8 @@ from erpnext.controllers.stock_controller import get_warehouse_account, update_g
|
|||||||
def execute():
|
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}):
|
||||||
|
|||||||
Reference in New Issue
Block a user