mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-28 14:18: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:
@@ -154,7 +154,7 @@ class BudgetValidation:
|
||||
def get_dimensions(self):
|
||||
self.dimensions = []
|
||||
for _x in frappe.db.get_all("Accounting Dimension"):
|
||||
self.dimensions.append(frappe.get_doc("Accounting Dimension", _x.name))
|
||||
self.dimensions.append(frappe.get_lazy_doc("Accounting Dimension", _x.name))
|
||||
self.dimensions.extend(
|
||||
[
|
||||
{"fieldname": "cost_center", "document_type": "Cost Center"},
|
||||
|
||||
Reference in New Issue
Block a user