From 1e6625c6fbe5ceda60c375d43f156486c239da2d Mon Sep 17 00:00:00 2001 From: Juliana <juliana@le-filament.com> Date: Mon, 9 Dec 2019 17:37:46 +0100 Subject: [PATCH] Suppression du create parent_id --- views/res_partner.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/views/res_partner.xml b/views/res_partner.xml index 1c7b14d..51bc231 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> -- GitLab