From 218a7abe8a1a7c5759167d485adb28580a2b38f5 Mon Sep 17 00:00:00 2001
From: Benjamin <benjamin@le-filament.com>
Date: Mon, 17 Feb 2020 16:54:26 +0100
Subject: [PATCH] =?UTF-8?q?[bugfix]=20champs=20obligatoires=20apr=C3=A8s?=
 =?UTF-8?q?=20fusion=20vue=20partner?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 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 2390f4c..03d2ef4 100644
--- a/views/res_partner.xml
+++ b/views/res_partner.xml
@@ -320,7 +320,7 @@
                                 <field name="segment_4_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}" domain="[('ur_id', '=', ur_id)]" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic'))]}"/>
                             </group>
                             <group string="Informations Activité">
-                                <field name="creation_origin_id" required="True" options="{'no_open': True, 'no_create': True}"/>
+                                <field name="creation_origin_id" attrs="{'required': [('is_cooperative', '=', True)]}" options="{'no_open': True, 'no_create': True}"/>
                                 <field name="creation_suborigin_id" domain="[('parent_id', '=', creation_origin_id), ('child_ids', '=', False)]" options="{'no_open': True, 'no_create': True}"/>
                                 <field name="date_1st_sign" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}"/>
                                 <field name="registration_date" attrs="{'invisible': [('project_status', 'in', ('1_information', '2_pre-diagnostic', '3_accompagnement'))]}"/>
-- 
GitLab