def execute():
	frappe.reload_doc("accounts", "doctype", "account")
	frappe.reload_doc("hub_node", "doctype", "hub_category")
	frappe.reload_doc("accounts", "doctype", "payment_schedule")
	for d in frappe.get_all('Company',
		filters={'country': ('in', ['Saudi Arabia', 'United Arab Emirates'])}):
		install_country_fixtures(d.name)
Exemple #2
0
def execute():
    for d in frappe.get_all('Company',
                            filters={
                                'country':
                                ('in',
                                 ['Saudi Arabia', 'United Arab Emirates'])
                            }):
        install_country_fixtures(d.name)
Exemple #3
0
def execute():
    frappe.reload_doc("accounts", "doctype", "account")
    for d in frappe.get_all('Company',
                            filters={
                                'country':
                                ('in',
                                 ['Saudi Arabia', 'United Arab Emirates'])
                            }):
        install_country_fixtures(d.name)
Exemple #4
0
def set_default_accounts(company):
	from erpnext.setup.doctype.company.company import install_country_fixtures
	company = frappe.get_doc('Company', company)
	company.update({
		"default_receivable_account": frappe.db.get_value("Account",
			{"company": company.name, "account_type": "Receivable", "is_group": 0}),
		"default_payable_account": frappe.db.get_value("Account",
			{"company": company.name, "account_type": "Payable", "is_group": 0})
	})

	company.save()
	install_country_fixtures(company.name)
	company.create_default_tax_template()
def setup_success(args=None):
    company = frappe.db.sql("select name from tabCompany",
                            as_dict=True)[0]["name"]
    install_country_fixtures(company)
def execute():
	frappe.reload_doc('regional', 'report', 'fichier_des_ecritures_comptables_[fec]')
	for d in frappe.get_all('Company', filters = {'country': 'France'}):
		install_country_fixtures(d.name)
def execute():
    frappe.reload_doc("regional", "report",
                      "fichier_des_ecritures_comptables_[fec]")
    for d in frappe.get_all("Company", filters={"country": "France"}):
        install_country_fixtures(d.name)
def execute():
	frappe.reload_doc('regional', 'report', 'fichier_des_ecritures_comptables_[fec]')
	for d in frappe.get_all('Company', filters = {'country': 'France'}):
		install_country_fixtures(d.name)