fix: Update message
Co-authored-by: gavin <gavin18d@gmail.com>
This commit is contained in:
parent
f3a6e30e6a
commit
0a06580e2c
@ -30,9 +30,7 @@ def after_install():
|
|||||||
|
|
||||||
def check_setup_wizard_not_completed():
|
def check_setup_wizard_not_completed():
|
||||||
if frappe.db.get_default('desktop:home_page') != 'setup-wizard':
|
if frappe.db.get_default('desktop:home_page') != 'setup-wizard':
|
||||||
message = """Cannot install ERPNext.
|
message = """ERPNext can only be installed on a fresh site where the setup wizard is not completed.
|
||||||
|
|
||||||
ERPNext can only be installed on a fresh site where the setup wizard is not completed.
|
|
||||||
You can reinstall this site (after saving your data) using: bench --site [sitename] reinstall"""
|
You can reinstall this site (after saving your data) using: bench --site [sitename] reinstall"""
|
||||||
frappe.throw(message, exc=frappe.IncompatibleApp)
|
frappe.throw(message, exc=frappe.IncompatibleApp)
|
||||||
|
|
||||||
@ -105,4 +103,3 @@ def add_company_to_session_defaults():
|
|||||||
"ref_doctype": "Company"
|
"ref_doctype": "Company"
|
||||||
})
|
})
|
||||||
settings.save()
|
settings.save()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user