mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-15 08:17:15 +00:00
[minor][fix] set transactions_exist on load of company
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user