[optimize] tree conditions for pricing rule
This commit is contained in:
@@ -605,7 +605,7 @@ class AccountsController(TransactionBase):
|
||||
|
||||
@property
|
||||
def company_abbr(self):
|
||||
if not hasattr(self, "_abbr"):
|
||||
if not hasattr(self, "_abbr") and self.company:
|
||||
self._abbr = frappe.get_cached_value('Company', self.company, "abbr")
|
||||
|
||||
return self._abbr
|
||||
|
||||
Reference in New Issue
Block a user