[multicheck] Select multiple domains in setup (#11709)
* [multicheck] select multiple domains in setup * use multiple domains in make_sample_data * revert to setting in domains child table * domains slide validation * update setup wizard test
This commit is contained in:
committed by
Nabin Hait
parent
cd477fc187
commit
7351709980
@@ -39,8 +39,10 @@ def setup_complete(args=None):
|
||||
create_logo(args)
|
||||
|
||||
frappe.local.message_log = []
|
||||
|
||||
domains = args.get('domains')
|
||||
domain_settings = frappe.get_single('Domain Settings')
|
||||
domain_settings.set_active_domains([args.get('domain')])
|
||||
domain_settings.set_active_domains(domains)
|
||||
|
||||
frappe.db.commit()
|
||||
login_as_first_user(args)
|
||||
@@ -49,7 +51,7 @@ def setup_complete(args=None):
|
||||
frappe.clear_cache()
|
||||
|
||||
try:
|
||||
make_sample_data(args.get('domain'))
|
||||
make_sample_data(domains)
|
||||
frappe.clear_cache()
|
||||
except:
|
||||
# clear message
|
||||
@@ -80,7 +82,7 @@ def create_fiscal_year_and_company(args):
|
||||
'country': args.get('country'),
|
||||
'create_chart_of_accounts_based_on': 'Standard Template',
|
||||
'chart_of_accounts': args.get('chart_of_accounts'),
|
||||
'domain': args.get('domain')
|
||||
'domain': args.get('domains')[0]
|
||||
}).insert()
|
||||
|
||||
#Enable shopping cart
|
||||
|
||||
Reference in New Issue
Block a user