From 51f66efc7a7a370e16778c6e6cace1a67bc32880 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Mon, 4 Jul 2016 12:30:38 +0530 Subject: [PATCH] [minor][fix] set transactions_exist on load of company --- erpnext/setup/doctype/company/company.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/setup/doctype/company/company.py b/erpnext/setup/doctype/company/company.py index 6b66324554..65fb42066f 100644 --- a/erpnext/setup/doctype/company/company.py +++ b/erpnext/setup/doctype/company/company.py @@ -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