mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
fix: reload doc for possible future schema changes (#25904)
This commit is contained in:
@@ -19,6 +19,9 @@ def execute():
|
|||||||
logger.info("purchase_receipt_status: begin patch, PR count: {}"
|
logger.info("purchase_receipt_status: begin patch, PR count: {}"
|
||||||
.format(len(affected_purchase_receipts)))
|
.format(len(affected_purchase_receipts)))
|
||||||
|
|
||||||
|
frappe.reload_doc("stock", "doctype", "Purchase Receipt")
|
||||||
|
frappe.reload_doc("stock", "doctype", "Purchase Receipt Item")
|
||||||
|
|
||||||
|
|
||||||
for pr in affected_purchase_receipts:
|
for pr in affected_purchase_receipts:
|
||||||
pr_name = pr[0]
|
pr_name = pr[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user