[hotfix] setup wizard, complete_setup fixes (#9654)

* [hotfix] setup wizard, complete_setup fixes

* Update utils.py

* Update utils.py
This commit is contained in:
Makarand Bauskar 2017-07-06 11:09:34 +05:30 committed by Rushabh Mehta
parent 63b06420e1
commit ddd4845420
2 changed files with 8 additions and 8 deletions

View File

@ -36,7 +36,7 @@ def setup_complete(args=None):
create_customers(args)
create_suppliers(args)
if args.domain.lower() == 'education':
if args.get('domain').lower() == 'education':
create_academic_year()
create_academic_term()
create_program(args)
@ -150,7 +150,7 @@ def set_defaults(args):
global_defaults = frappe.get_doc("Global Defaults", "Global Defaults")
global_defaults.update({
'current_fiscal_year': args.curr_fiscal_year,
'current_fiscal_year': args.get('curr_fiscal_year'),
'default_currency': args.get('currency'),
'default_company':args.get('company_name') ,
"country": args.get("country"),
@ -196,7 +196,7 @@ def set_defaults(args):
hr_settings.save()
domain_settings = frappe.get_doc("Domain Settings")
domain_settings.append('active_domains', dict(domain=_(args.domain)))
domain_settings.append('active_domains', dict(domain=_(args.get('domain'))))
domain_settings.save()
def create_feed_and_todo():