Merge pull request #48495 from ljain112/refactor--acc-settings

perf: use `cached_doc` for Account Settings
This commit is contained in:
Diptanil Saha
2025-07-11 14:41:30 +05:30
committed by GitHub

View File

@@ -102,7 +102,7 @@ def get_exchange_rate(from_currency, to_currency, transaction_date=None, args=No
if not transaction_date:
transaction_date = nowdate()
currency_settings = frappe.get_doc("Accounts Settings").as_dict()
currency_settings = frappe.get_cached_doc("Accounts Settings")
allow_stale_rates = currency_settings.get("allow_stale")
filters = [