diff --git a/views/hr_timesheet.xml b/views/hr_timesheet.xml index b5d8a0602d6e39636636b0ba8526565fdf3cf212..5755cc04466581447a6b64aab28b4901e10c2dad 100644 --- a/views/hr_timesheet.xml +++ b/views/hr_timesheet.xml @@ -5,6 +5,20 @@ <odoo> <data> + <record id="cgscop_hr_timesheet_line_search" model="ir.ui.view"> + <field name="name">cgscop.hr.timesheet.line.search</field> + <field name="model">account.analytic.line</field> + <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_search"/> + <field name="arch" type="xml"> + <xpath expr="//filter[@name='groupby_task']" position="replace"> + <filter string="Contact" name="groupby_partner" domain="[]" context="{'group_by':'partner_id'}"/> + </xpath> + <xpath expr="//filter[@name='groupby_project']" position="attributes"> + <attribute name="string">Code activité UR</attribute> + </xpath> + </field> + </record> + <!-- Tree View Timesheet CG --> <record id="view_cgscop_hr_timesheet_line_tree" model="ir.ui.view"> <field name="name">account.analytic.line.timesheet.cgscop</field>