[minor][fix] set transactions_exist on load of company

This commit is contained in:
Saurabh 2016-07-04 12:30:38 +05:30
parent c2934ba9da
commit 51f66efc7a

View File

@ -13,7 +13,7 @@ from frappe.model.document import Document
class Company(Document):
def onload(self):
self.get("__onload").transactions_exist = self.check_if_transactions_exist()
self.get("__onload")["transactions_exist"] = self.check_if_transactions_exist()
def check_if_transactions_exist(self):
exists = False