From 26666e36cad8cbac7dc1b90f52ce3b615c84153f Mon Sep 17 00:00:00 2001 From: hsilvant <hsilvant@scop.coop> Date: Fri, 18 Sep 2020 16:33:23 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20du=20d=C3=A9l=C3=A9gu=C3=A9=20de=20suiv?= =?UTF-8?q?i=20sur=20les=20contacts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- views/res_partner.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/views/res_partner.xml b/views/res_partner.xml index 2f04bba..2eedc57 100644 --- a/views/res_partner.xml +++ b/views/res_partner.xml @@ -150,6 +150,7 @@ <field name="birthyear" attrs="{'invisible': [('is_company','=', True)]}"/> <field name="contact_origin_id" attrs="{'invisible': [('is_company','=', True)]}" options="{'no_create': True, 'no_open': True}"/> <field name="contact_legality" readonly="True" attrs="{'invisible': [('is_company','=', True)]}"/> + <field name="followup_delegate_id" widget="res_partner_many2one" options="{'no_open': True, 'no_create': True}" domain="[('active', '=', True),('ur_id', '=', ur_id)]"/> </group> </xpath> <xpath expr='//form/sheet/group' position="after"> @@ -211,6 +212,7 @@ <field name="birthyear"/> <field name="contact_origin_id" options="{'no_open': True, 'no_create': True}"/> <field name="contact_legality" readonly="1"/> + <field name="followup_delegate_id" widget="res_partner_many2one" options="{'no_open': True, 'no_create': True}" domain="[('active', '=', True),('ur_id', '=', ur_id)]"/> </group> </xpath> <xpath expr="//field[@name='child_ids']/form//group" position="after"> @@ -799,6 +801,7 @@ <field name="birthyear"/> <field name="contact_origin_id" options="{'no_open': True, 'no_create': True}"/> <field name="contact_legality" readonly="1"/> + <field name="followup_delegate_id" widget="res_partner_many2one" options="{'no_open': True, 'no_create': True}" domain="[('active', '=', True),('ur_id', '=', ur_id)]"/> </group> </group> <field name="subscription_ids"> @@ -884,6 +887,7 @@ <field name="birthyear"/> <field name="contact_origin_id" options="{'no_open': True, 'no_create': True}"/> <field name="contact_legality" readonly="1"/> + <field name="followup_delegate_id" widget="res_partner_many2one" options="{'no_open': True, 'no_create': True}" domain="[('active', '=', True),('ur_id', '=', ur_id)]"/> </group> </group> <field name="subscription_ids" attrs="{'invisible': [('type', '!=', 'contact')]}"> -- GitLab