From d6007e7d9cdb42ba2e204f736170a8023df2c957 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 21 May 2014 15:22:15 +0530 Subject: [PATCH] Hook: setup_wizard_success --- erpnext/setup/page/setup_wizard/setup_wizard.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/erpnext/setup/page/setup_wizard/setup_wizard.py b/erpnext/setup/page/setup_wizard/setup_wizard.py index c42754628b..6951158094 100644 --- a/erpnext/setup/page/setup_wizard/setup_wizard.py +++ b/erpnext/setup/page/setup_wizard/setup_wizard.py @@ -76,6 +76,7 @@ def setup_account(args=None): frappe.clear_cache() frappe.db.commit() + except: traceback = frappe.get_traceback() for hook in frappe.get_hooks("setup_wizard_exception"): @@ -83,6 +84,11 @@ def setup_account(args=None): raise + else: + for hook in frappe.get_hooks("setup_wizard_success"): + frappe.get_attr(hook)(args) + + def update_user_name(args): if args.get("email"): args['name'] = args.get("email")