diff --git a/views/res_partner.xml b/views/res_partner.xml index 473a22433f8ec250a53923fa5e52cb6f8a63aa10..45d9d91fb954492d68b17a520689d31bc21c613e 100644 --- a/views/res_partner.xml +++ b/views/res_partner.xml @@ -213,7 +213,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)]"/> + <field name="followup_delegate_id" 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"> @@ -234,6 +234,14 @@ <field name="mobile" widget="phone" attrs="{'invisible': [('is_company','=', True)]}"/> <field name="email" widget="email" on_change="1"/> <field name="website" attrs="{'invisible': [('is_company','=', False)]}"/> + <label for="siret" class="oe_edit_only" attrs="{'invisible': [('is_company','=', False), ('is_cooperative','=', False)]}"/> + <div> + <field name="siret" class="oe_edit_only" attrs="{'invisible': [('is_company','=', False), ('is_cooperative','=', False)]}"/> + </div> + <label for="formatted_siret" class="oe_read_only" string="SIRET" attrs="{'invisible': [('is_company','=', False), ('is_cooperative','=', False)]}"/> + <div> + <field name="formatted_siret" class="oe_read_only" string="SIRET" attrs="{'invisible': [('is_company','=', False), ('is_cooperative','=', False)]}"/> + </div> <field name="ur_id" options='{"no_open": True, "no_create": True}' on_change="1" can_create="false" can_write="false"/> <field name="category_id" options='{"no_open": True, "no_create": True}' widget="many2many_tags" attrs="{'invisible': ['|', ('is_company', '=', True), ('type', '!=', 'contact')]}"/> <field name="lang" invisible="1"/>