From 06db98e2c5463eac6224d71c5de05d77424fa8f8 Mon Sep 17 00:00:00 2001 From: Smit Vora Date: Sun, 31 Dec 2023 10:54:07 +0530 Subject: [PATCH] fix: enqueue demo data setup on setup complete (#39043) (cherry picked from commit 877cc7255dfc80cbdd0dab971bcde81f5ebf57ba) --- erpnext/hooks.py | 1 + erpnext/setup/setup_wizard/setup_wizard.py | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/erpnext/hooks.py b/erpnext/hooks.py index f6b6802d581b..78bb2d2c270f 100644 --- a/erpnext/hooks.py +++ b/erpnext/hooks.py @@ -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 = [ diff --git a/erpnext/setup/setup_wizard/setup_wizard.py b/erpnext/setup/setup_wizard/setup_wizard.py index 2da107e4e940..9a49af2b10ed 100644 --- a/erpnext/setup/setup_wizard/setup_wizard.py +++ b/erpnext/setup/setup_wizard/setup_wizard.py @@ -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"),