perf: Use cached accounts settings (#47947)

This commit is contained in:
Ankush Menat
2025-06-06 19:29:18 +05:30
committed by GitHub
parent ea5c2c454b
commit 45a4beb401
32 changed files with 65 additions and 98 deletions

View File

@@ -842,7 +842,7 @@ class BuyingController(SubcontractingController):
self.update_fixed_asset(field, delete_asset=True)
def validate_budget(self):
if frappe.db.get_single_value("Accounts Settings", "use_new_budget_controller"):
if frappe.get_settings("Accounts Settings", "use_new_budget_controller"):
from erpnext.controllers.budget_controller import BudgetValidation
val = BudgetValidation(doc=self)