From 6a5695fe17d130d31fa0958d749a8ecbfd774e63 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 9 Aug 2018 11:30:21 +0530 Subject: [PATCH] minor fix --- erpnext/controllers/accounts_controller.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index 122e66db87a..f6f9e4d74d1 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -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