diff --git a/views/hr_timesheet.xml b/views/hr_timesheet.xml index 80e09bfbe4db1355664b8eac6bab856d2253534a..1cffd342be4bedf1356a23e1e68b873b2e8c29d3 100644 --- a/views/hr_timesheet.xml +++ b/views/hr_timesheet.xml @@ -31,6 +31,9 @@ <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'}"/> </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"> <attribute name="string">Code activité UR</attribute> </xpath> @@ -189,7 +192,7 @@ <record id="hr_timesheet.act_hr_timesheet_line" model="ir.actions.act_window"> <field name="name">Mes lignes de temps</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), (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')}),