Merge pull request #8295 from saurabh6790/demo_fix
[fix] demo script for setup data
This commit is contained in:
commit
fcf34dc570
@ -64,8 +64,11 @@ def complete_setup(domain='Manufacturing'):
|
||||
})
|
||||
|
||||
company = erpnext.get_default_company()
|
||||
company.db_set('default_payroll_payable_account',
|
||||
frappe.db.get_value('Account', dict(account_name='Payroll Payable')))
|
||||
|
||||
if company:
|
||||
company_doc = frappe.get_doc("Company", company)
|
||||
company_doc.db_set('default_payroll_payable_account',
|
||||
frappe.db.get_value('Account', dict(account_name='Payroll Payable')))
|
||||
|
||||
def setup_demo_page():
|
||||
# home page should always be "start"
|
||||
|
Loading…
Reference in New Issue
Block a user