diff --git a/views/res_partner.xml b/views/res_partner.xml index 1c7b14db162bb617f46dd8852d25006942398645..51bc231319fec52bafae8ec1213f825f5b25dc5e 100644 --- a/views/res_partner.xml +++ b/views/res_partner.xml @@ -40,6 +40,9 @@ <field name="parent_id" position="before"> <label for="parent_id" string="Société" attrs="{'invisible': ['|', '&', ('is_company','=', True),('parent_id', '=', False),('company_name', '!=', False),('company_name', '!=', '')]}"/> </field> + <field name="parent_id" position="attributes"> + <attribute name="options" >{'no_create': True}</attribute> + </field> <xpath expr="//div[hasclass('oe_title')]" position="attributes"> <attribute name="class">oe_title oe_title_cgscop</attribute> </xpath>