From 392e6d2369193b66cd61c81770fca1bc1f6437da Mon Sep 17 00:00:00 2001 From: "Thomas Becquevort (thbe)" Date: Tue, 5 Dec 2023 09:57:28 +0100 Subject: [PATCH] [FIX] account: non responding view button on coa MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description of the issue/behavior this commit fixes: When accessing the chart of accounts from the button in the starting banner on the accounting dashboard, the "View" button on the right does nothing while it should open the form view of the account of the row which's button is clicked. Steps to reproduce: 1 - Install account_accountant (or else the coa is not reachable from the dash) 2 - Open the Accounting app 3 - Click on "Chart of Accounts" in the onboarding banner 4 - Click on the View buton of any row 5 - Nothing happens Desired behavior after this commit is merged: This commit adds the form view in the view that is returned when clicking on "Chart of Accounts". Thanks to that, the open_form_view is able to return a form view when the button is clicked. With this commit, the view button is operational. task-3624209 closes odoo/odoo#145053 Signed-off-by: de Wouters de Bouchout Jean-BenoƮt (jbw) --- addons/account/models/onboarding_onboarding_step.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/onboarding_onboarding_step.py b/addons/account/models/onboarding_onboarding_step.py index e0f4fe11229..bf2cb510912 100644 --- a/addons/account/models/onboarding_onboarding_step.py +++ b/addons/account/models/onboarding_onboarding_step.py @@ -116,7 +116,7 @@ class OnboardingStep(models.Model): 'view_mode': 'tree', 'limit': 99999999, 'search_view_id': [self.env.ref('account.view_account_search').id], - 'views': [[view_id, 'list']], + 'views': [[view_id, 'list'], [False, 'form']], 'domain': domain, }