From 4fe9ab90797976ed44447c7bd914087bb59daf33 Mon Sep 17 00:00:00 2001
From: Benjamin <benjamin@le-filament.com>
Date: Fri, 14 Feb 2020 19:18:15 +0100
Subject: [PATCH] =?UTF-8?q?[cgscop=20#56]=20Filtre=20lignes=20de=20temps?=
 =?UTF-8?q?=20sur=20l'employ=C3=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 views/hr_expense.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/views/hr_expense.xml b/views/hr_expense.xml
index 9240715..5b212c5 100644
--- a/views/hr_expense.xml
+++ b/views/hr_expense.xml
@@ -62,7 +62,7 @@
                     <field name="expense_formula" invisible="True" />
                 </field>
                 <field name="analytic_account_id" position="before">
-                    <field name="timesheet_id" options="{'no_create': True, 'no_open': True}" />
+                    <field name="timesheet_id" options="{'no_create': True, 'no_open': True}" domain="[('employee_id', '=', employee_id )]"/>
                 </field>
                 <field name="analytic_account_id" position="attributes">
                     <attribute name="string">Code activité UR</attribute>
-- 
GitLab