From e12e0b0caa0718105e5ee8787b1ca0cf73ff30ce Mon Sep 17 00:00:00 2001 From: aliya Date: Thu, 24 Aug 2023 15:16:15 +0000 Subject: [PATCH] [FIX] account: fix the bank account onboarding MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If a bank account is added through the onboarding step and the user creates one instead of linking it, the dashboard is not reloaded to show the completion of the step and the new account. To make sure that the view is reloaded to show new data, the easiest fix would be to return a reload action in `validate`. task-3431961 closes odoo/odoo#135170 X-original-commit: cc793b303da5ea2dbe931bac1da266a121429ede Related: odoo/enterprise#47302 Signed-off-by: William André (wan) Signed-off-by: Aliya Tastemirova (alta) --- addons/account/wizard/setup_wizards.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/account/wizard/setup_wizards.py b/addons/account/wizard/setup_wizards.py index cf1bcef85f7..df4d3c02f31 100644 --- a/addons/account/wizard/setup_wizards.py +++ b/addons/account/wizard/setup_wizards.py @@ -151,7 +151,8 @@ class SetupBarBankConfigWizard(models.TransientModel): """Called by the validation button of this wizard. Serves as an extension hook in account_bank_statement_import. """ - return self.env["onboarding.onboarding.step"].action_validate_step("account.onboarding_onboarding_step_bank_account") + self.env["onboarding.onboarding.step"].action_validate_step("account.onboarding_onboarding_step_bank_account") + return {'type': 'ir.actions.client', 'tag': 'soft_reload'} def _compute_company_id(self): for wizard in self: