From c6a79ca3eb79692c04eba909933e5d6f22f226aa Mon Sep 17 00:00:00 2001 From: Juliana <juliana@le-filament.com> Date: Mon, 13 Dec 2021 11:24:23 +0100 Subject: [PATCH] [MIG]Change act_window to record --- views/views.xml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/views/views.xml b/views/views.xml index 8716708..1dbc324 100644 --- a/views/views.xml +++ b/views/views.xml @@ -3,8 +3,13 @@ License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> <odoo> <data> - - <act_window id="lefilament_dashboard_action" name="Dashboard - Le Filament" res_model="lefilament.dashboard" view_mode="tree,graph,form,pivot" /> + + <record id="lefilament_dashboard_action" model="ir.actions.act_window" > + <field name="name">Dashboard - Le Filament</field> + <field name="res_model">lefilament.dashboard</field> + <field name="view_mode">tree,graph,form,pivot</field> + </record> + <record id="lefilament_dashboard_variables_action" model="ir.actions.act_window" > <field name="name">Variables Dashboard Le Filament</field> @@ -152,8 +157,8 @@ <filter string="L'année dernière" name="last_year" domain="[ ('date_tdb', '>=', (context_today()-relativedelta(years=1)).strftime('%Y-01-01')), ('date_tdb', '<=', (context_today()-relativedelta(years=1)).strftime('%Y-12-31'))]" /> <group expand="0" name="group_by" string="Group By"> - <filter string="Trimestre" name="trimestre" context="{'group_by':'date_tdb:quarter'}" /> - <filter string="An" name="an" context="{'group_by':'date_tdb:year'}" /> + <filter string="Trimestre" name="trimestre" context="{'group_by':'date_tdb:quarter'}" domain="[]"/> + <filter string="An" name="an" context="{'group_by':'date_tdb:year'}" domain="[]"/> </group> </search> </field> -- GitLab