fix: reload doc for possible future schema changes (#25904)

This commit is contained in:
Ankush Menat 2021-06-01 11:56:00 +05:30 committed by GitHub
parent 1175e0686b
commit 2c7fac0e76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,9 @@ def execute():
logger.info("purchase_receipt_status: begin patch, PR count: {}"
.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:
pr_name = pr[0]