From fca87058126a783c7698f2af38925ed4fabff9a8 Mon Sep 17 00:00:00 2001
From: Juliana <juliana@le-filament.com>
Date: Mon, 9 Dec 2019 18:00:52 +0100
Subject: [PATCH] Modification grouper par

---
 views/hr_timesheet.xml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/views/hr_timesheet.xml b/views/hr_timesheet.xml
index b5d8a06..5755cc0 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>
-- 
GitLab