[optimize] tree conditions for pricing rule

This commit is contained in:
Nabin Hait
2018-08-08 18:43:04 +05:30
parent 859d942b22
commit 50238c3049
4 changed files with 27 additions and 12 deletions

View File

@@ -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