minor fix

This commit is contained in:
Nabin Hait 2018-08-09 11:30:21 +05:30
parent 9a33bc6417
commit 6a5695fe17

View File

@ -605,9 +605,8 @@ class AccountsController(TransactionBase):
@property
def company_abbr(self):
self._abbr = None
if not hasattr(self, "_abbr") and self.company:
self._abbr = frappe.get_cached_value('Company', self.company, "abbr")
if not hasattr(self, "_abbr"):
self._abbr = frappe.db.get_value('Company', self.company, "abbr")
return self._abbr