def onload(self): """Load address in `__onload`""" load_address_and_contact(self, "patient_record") self.load_dashboard_info()
def onload(self): customer = frappe.db.get_value("Customer", {"lead_name": self.name}) self.get("__onload").is_customer = customer load_address_and_contact(self, "lead")
def onload(self): """Load address and contacts in `__onload`""" load_address_and_contact(self, "supplier") self.load_dashboard_info()
def onload(self): """Load address and contacts in `__onload`""" load_address_and_contact(self, "sales_partner")
def onload(self): load_address_and_contact(self, "company") self.get("__onload" )["transactions_exist"] = self.check_if_transactions_exist()