[minor] added cache in get_value

This commit is contained in:
Rushabh Mehta
2015-04-27 13:13:38 +05:30
parent 8be3ba36d9
commit 50ce9753e0
4 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ from frappe import _, throw
from frappe.utils import flt
def get_company_currency(company):
currency = frappe.db.get_value("Company", company, "default_currency")
currency = frappe.db.get_value("Company", company, "default_currency", cache=True)
if not currency:
currency = frappe.db.get_default("currency")
if not currency: