[FIX] account: fix the bank account onboarding
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) <wan@odoo.com> Signed-off-by: Aliya Tastemirova (alta) <alta@odoo.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user