From 1d327d380d9c5d63d51d7332298c3968e345f838 Mon Sep 17 00:00:00 2001
From: Benjamin <benjamin@le-filament.com>
Date: Wed, 19 Aug 2020 17:10:52 +0200
Subject: [PATCH] =?UTF-8?q?[update]=20filtre=20la=20s=C3=A9lection=20de=20?=
 =?UTF-8?q?l'article=20sur=20l'UR?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 views/hr_expense.xml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/views/hr_expense.xml b/views/hr_expense.xml
index 48a8fa7..d46a6c0 100644
--- a/views/hr_expense.xml
+++ b/views/hr_expense.xml
@@ -37,7 +37,9 @@
                 <xpath expr="//widget[2]" position="attributes">
                     <attribute name="invisible">True</attribute>
                 </xpath>
-
+                <field name="product_id" position="attributes">
+                    <attribute name="domain">[('ur_id', '=', ur_id)]]</attribute>
+                </field>
                 <field name="reference" position="attributes">
                     <attribute name="invisible">True</attribute>
                 </field>
-- 
GitLab