optimizing transactions by caching

This commit is contained in:
Nabin Hait
2018-08-09 10:47:09 +05:30
parent 50238c3049
commit 9a33bc6417
6 changed files with 27 additions and 26 deletions

View File

@@ -605,6 +605,7 @@ 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")