From 4d2291c7743b84ecbf965901c78939f73152b773 Mon Sep 17 00:00:00 2001 From: "Xavier BOL (xbo)" Date: Mon, 11 Apr 2022 13:49:33 +0000 Subject: [PATCH] [FIX] sale_timesheet: remove the 'grid' in the view mode Before this commit, the `grid` is asked in a window action used when the user clicks on the stat button to see the timesheets related in account move form view. When the user clicks on that button he has a traceback because the grid only exists in the enterprise version and not in community version. This commit removes the 'grid' in the `view_mode` of that action since in community version the grid view does not exist. closes #88274 closes odoo/odoo#88581 X-original-commit: 6613ac1d93dd5bea0cfee6be92082fc9afcee64d Signed-off-by: Yannick Tivisse (yti) Signed-off-by: Xavier --- addons/sale_timesheet/views/account_invoice_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale_timesheet/views/account_invoice_views.xml b/addons/sale_timesheet/views/account_invoice_views.xml index 731c6ec2938..5290d75510e 100644 --- a/addons/sale_timesheet/views/account_invoice_views.xml +++ b/addons/sale_timesheet/views/account_invoice_views.xml @@ -5,7 +5,7 @@ Timesheets ir.actions.act_window account.analytic.line - tree,form,graph,pivot,kanban,grid + tree,form,graph,pivot,kanban {'create': False, 'edit': False, 'delete': False} [('timesheet_invoice_id', '=', active_id)]