minor fix
This commit is contained in:
parent
9a33bc6417
commit
6a5695fe17
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user