示例#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)
示例#2
0
文件: donor.py 项目: dataent/epaas
	def onload(self):
		"""Load address and contacts in `__onload`"""
		load_address_and_contact(self)
示例#3
0
	def onload(self):
		load_address_and_contact(self, "company")
		self.get("__onload")["transactions_exist"] = self.check_if_transactions_exist()
示例#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)
示例#5
0
文件: supplier.py 项目: dataent/epaas
 def onload(self):
     """Load address and contacts in `__onload`"""
     load_address_and_contact(self)
     self.load_dashboard_info()