diff --git a/erpnext/setup/utils.py b/erpnext/setup/utils.py index 814cf8cb148..25a08438460 100644 --- a/erpnext/setup/utils.py +++ b/erpnext/setup/utils.py @@ -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 = [