Skip to content
Snippets Groups Projects
Commit ebfb3141 authored by jordan's avatar jordan
Browse files

[update] default group by date:day in hr_timesheet for tree view

parent 2d511002
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,9 @@ ...@@ -31,6 +31,9 @@
<filter string="Contact" name="groupby_partner" domain="[]" context="{'group_by':'partner_id'}"/> <filter string="Contact" name="groupby_partner" domain="[]" context="{'group_by':'partner_id'}"/>
<filter string="Dispositif financier" name="groupby_financial_system" domain="[]" context="{'group_by':'ur_financial_system_id'}"/> <filter string="Dispositif financier" name="groupby_financial_system" domain="[]" context="{'group_by':'ur_financial_system_id'}"/>
</xpath> </xpath>
<xpath expr="//filter[@name='groupby_date']" position="attributes">
<attribute name="context">{'group_by':'date:day'}</attribute>
</xpath>
<xpath expr="//filter[@name='groupby_project']" position="attributes"> <xpath expr="//filter[@name='groupby_project']" position="attributes">
<attribute name="string">Code activité UR</attribute> <attribute name="string">Code activité UR</attribute>
</xpath> </xpath>
...@@ -189,7 +192,7 @@ ...@@ -189,7 +192,7 @@
<record id="hr_timesheet.act_hr_timesheet_line" model="ir.actions.act_window"> <record id="hr_timesheet.act_hr_timesheet_line" model="ir.actions.act_window">
<field name="name">Mes lignes de temps</field> <field name="name">Mes lignes de temps</field>
<field name="view_mode">calendar,tree,form,pivot</field> <field name="view_mode">calendar,tree,form,pivot</field>
<field name="context">{'search_default_no_report': 1}</field> <field name="context">{'search_default_no_report': 1, 'search_default_groupby_date': 1}</field>
<field name="view_ids" eval="[(5, 0, 0), <field name="view_ids" eval="[(5, 0, 0),
(0, 0, {'view_mode': 'tree', 'sequence': 5, 'view_id': ref('cgscop_timesheet.view_cgscop_hr_timesheet_line_tree')}), (0, 0, {'view_mode': 'tree', 'sequence': 5, 'view_id': ref('cgscop_timesheet.view_cgscop_hr_timesheet_line_tree')}),
(0, 0, {'view_mode': 'calendar', 'sequence': 10, 'view_id': ref('cgscop_timesheet.view_cgscop_hr_timesheet_line_calendar')}), (0, 0, {'view_mode': 'calendar', 'sequence': 10, 'view_id': ref('cgscop_timesheet.view_cgscop_hr_timesheet_line_calendar')}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment