mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
optimize(various)
This commit is contained in:
@@ -22,7 +22,7 @@ class ShoppingCartSettings(Document):
|
||||
|
||||
def validate_exchange_rates_exist(self):
|
||||
"""check if exchange rates exist for all Price List currencies (to company's currency)"""
|
||||
company_currency = frappe.db.get_value("Company", self.company, "default_currency")
|
||||
company_currency = frappe.get_cached_value('Company', self.company, "default_currency")
|
||||
if not company_currency:
|
||||
msgprint(_("Please specify currency in Company") + ": " + self.company,
|
||||
raise_exception=ShoppingCartSetupError)
|
||||
|
||||
Reference in New Issue
Block a user