mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +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):
|
class Company(Document):
|
||||||
def onload(self):
|
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):
|
def check_if_transactions_exist(self):
|
||||||
exists = False
|
exists = False
|
||||||
|
|||||||
Reference in New Issue
Block a user