From 9beffb6e565468e0addcc17283c46dfaa0891ed7 Mon Sep 17 00:00:00 2001
From: benjamin <benjamin@le-filament.com>
Date: Wed, 25 Aug 2021 12:30:04 +0200
Subject: [PATCH] [add] UR domain on parent_id

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

diff --git a/views/res_partner.xml b/views/res_partner.xml
index fc8d2a6..9194aae 100644
--- a/views/res_partner.xml
+++ b/views/res_partner.xml
@@ -82,7 +82,7 @@
                 </field>
                 <field name="parent_id" position="attributes">
                     <attribute name="options">{'no_create': True}</attribute>
-                    <attribute name="domain">[('is_company', '=', True)]</attribute>
+                    <attribute name="domain">[('is_company', '=', True), ('ur_id', '=', ur_id)]</attribute>
                     <attribute name="placeholder">Société</attribute>
                 </field>
                 <xpath expr="//div[hasclass('oe_title')]" position="attributes">
-- 
GitLab