From 24c92d8b950ec6ef457e4dc7be7c3a59edf607dd Mon Sep 17 00:00:00 2001 From: Julien Castiaux Date: Tue, 27 Aug 2019 11:11:10 +0000 Subject: [PATCH] [FIX] account: move group visible search to inherited view Make sure your user does not have the "Analytic Accounting" group, access the Invoices Management Report, traceback. The problem is linked to groups. When they are used on model field, the field is removed by the ORM. When they are used in view field, the field is set as invisible. As both fields were restricted to the group, the frontend was trying to render an invisible field using a removed field causing the traceback. The problematic field has been moved to a dedicated inherited view with the group applied on the entire view. This cause the field not to be rendered when the user does not have the group. closes odoo/odoo#36122 Signed-off-by: Xavier Morel (xmo) --- .../account/report/account_invoice_report_view.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/addons/account/report/account_invoice_report_view.xml b/addons/account/report/account_invoice_report_view.xml index 3980add37c4..51c265aeaa6 100644 --- a/addons/account/report/account_invoice_report_view.xml +++ b/addons/account/report/account_invoice_report_view.xml @@ -87,7 +87,6 @@ - @@ -97,6 +96,18 @@ + + account.invoice.report.search_analytic_accounting + account.invoice.report + + + + + + + + + Invoices Analysis account.invoice.report