Example #1
0
    def onload(self):
        '''load account name for General Ledger Report'''
        if self.company and cint(
                dataent.db.get_value("Company", self.company,
                                     "enable_perpetual_inventory")):
            account = self.account or get_warehouse_account(self)

            if account:
                self.set_onload('account', account)
        load_address_and_contact(self)
Example #2
0
	def onload(self):
		"""Load address and contacts in `__onload`"""
		load_address_and_contact(self)
Example #3
0
	def onload(self):
		load_address_and_contact(self, "company")
		self.get("__onload")["transactions_exist"] = self.check_if_transactions_exist()
Example #4
0
 def onload(self):
     customer = dataent.db.get_value("Customer", {"lead_name": self.name})
     self.get("__onload").is_customer = customer
     load_address_and_contact(self)
Example #5
0
 def onload(self):
     """Load address and contacts in `__onload`"""
     load_address_and_contact(self)
     self.load_dashboard_info()