mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-29 22:58:25 +00:00
perf: Use cached accounts settings (#47947)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user