mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-28 22:28:24 +00:00
perf: Use lazy loaded documents (#48017)
* perf: Use lazy docs for status updaters and similar use cases * perf: lazy load documents while reposting
This commit is contained in:
@@ -793,7 +793,7 @@ class BuyingController(SubcontractingController):
|
||||
|
||||
for po, po_item_rows in po_map.items():
|
||||
if po and po_item_rows:
|
||||
po_obj = frappe.get_doc("Purchase Order", po)
|
||||
po_obj = frappe.get_lazy_doc("Purchase Order", po)
|
||||
|
||||
if po_obj.status in ["Closed", "Cancelled"]:
|
||||
frappe.throw(
|
||||
|
||||
Reference in New Issue
Block a user