Merge pull request #8295 from saurabh6790/demo_fix

[fix] demo script for setup data
This commit is contained in:
Nabin Hait 2017-04-03 17:56:47 +05:30 committed by GitHub
commit fcf34dc570

View File

@ -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"