From 2a774fa0ac5f0b038c9536c8d2807feb3ae62e1a Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 9 Aug 2018 11:50:34 +0530 Subject: [PATCH] minor fix --- erpnext/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):