diff --git a/erpnext/__init__.py b/erpnext/__init__.py index a4be3b0510..d234e1ed4b 100644 --- a/erpnext/__init__.py +++ b/erpnext/__init__.py @@ -45,7 +45,7 @@ def get_company_currency(company): if not frappe.flags.company_currency: frappe.flags.company_currency = {} if not company in frappe.flags.company_currency: - frappe.flags.company_currency[company] = frappe.get_cached_value('Company', company, 'default_currency') + frappe.flags.company_currency[company] = frappe.db.get_value('Company', company, 'default_currency', cache=True) return frappe.flags.company_currency[company] def set_perpetual_inventory(enable=1, company=None):