Skip to content

Commit

Permalink
fix: enqueue demo data setup on setup complete (#39043)
Browse files Browse the repository at this point in the history
  • Loading branch information
vorasmit authored Dec 31, 2023
1 parent 70abedc commit 877cc72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions erpnext/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
# setup wizard
setup_wizard_requires = "assets/erpnext/js/setup_wizard.js"
setup_wizard_stages = "erpnext.setup.setup_wizard.setup_wizard.get_setup_stages"
setup_wizard_complete = "erpnext.setup.setup_wizard.setup_wizard.setup_demo"
setup_wizard_test = "erpnext.setup.setup_wizard.test_setup_wizard.run_setup_wizard_test"

before_install = [
Expand Down
5 changes: 0 additions & 5 deletions erpnext/setup/setup_wizard/setup_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ def get_setup_stages(args=None):
{"fn": setup_defaults, "args": args, "fail_msg": _("Failed to setup defaults")},
],
},
{
"status": _("Setting up demo data"),
"fail_msg": _("Failed to setup demo data"),
"tasks": [{"fn": setup_demo, "args": args, "fail_msg": _("Failed to setup demo data")}],
},
{
"status": _("Wrapping up"),
"fail_msg": _("Failed to login"),
Expand Down

0 comments on commit 877cc72

Please sign in to comment.