[FIX] account: non responding view button on coa

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) <jbw@odoo.com>
This commit is contained in:
Thomas Becquevort (thbe)
2023-12-06 14:07:53 +00:00
parent 8e1906724c
commit 392e6d2369
@@ -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,
}