diff --git a/views/res_partner.xml b/views/res_partner.xml index 46c9fcbf2a802bc4a17d2882a8628c1fd0f1d5d5..3cbbbf72c591e37edfcd11f53a61dffdb847895d 100644 --- a/views/res_partner.xml +++ b/views/res_partner.xml @@ -41,7 +41,9 @@ <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> + <attribute name="options">{'no_open': True, 'no_create': True}</attribute> + <attribute name="domain">[('is_company', '=', True)]</attribute> + <attribute name="placeholder">Société</attribute> </field> <xpath expr="//div[hasclass('oe_title')]" position="attributes"> <attribute name="class">oe_title oe_title_cgscop</attribute>