From 7b061ae8ce211813d18f8195789151b1c2f9d09d Mon Sep 17 00:00:00 2001 From: jordan <jordan@le-filament.com> Date: Wed, 14 Apr 2021 17:28:50 +0200 Subject: [PATCH] [fix] clean view --- views/res_partner.xml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/views/res_partner.xml b/views/res_partner.xml index 8724656..6828c34 100644 --- a/views/res_partner.xml +++ b/views/res_partner.xml @@ -14,9 +14,9 @@ <xpath expr="//sheet" position="before"> <header> - <field name="related_commerce_status" widget="statusbar" clickable="0" + <field name="commerce_status_id" widget="statusbar" clickable="1" attrs="{'invisible': [('type_id', 'not in', (%(etic_partner.type_shop)d, %(etic_partner.type_supplier)d))]}"/> - <field name="related_essaimage_status" widget="statusbar" clickable="0" + <field name="essaimage_status_id" widget="statusbar" clickable="1" attrs="{'invisible': [('type_id', 'not in', (%(etic_partner.type_essaimage)d))]}"/> </header> </xpath> @@ -54,12 +54,11 @@ <xpath expr="//page[@name='sales_purchases']" position="after"> <page name='commerce' string="Commerce" - attrs="{'invisible': [('type_id', 'not in', (%(etic_partner.type_shop)d, %(etic_partner.type_supplier)d))]}"> + attrs="{'invisible': [('type_id', '!=', (%(etic_partner.type_shop)d))]}"> <group col="2"> <group> <field name="commerce_type_id" options="{'no_open': True, 'no_create': True}"/> <field name="legal_status_id" options="{'no_open': True, 'no_create': True}"/> - <field name="commerce_status_id" options="{'no_open': True, 'no_create': True}"/> <field name="prescripteur_id" options="{'no_open': True, 'no_create': True}"/> <field name="gt_commerce_participation" widget="boolean_toggle"/> </group> @@ -113,7 +112,6 @@ <page name='essaimage' string="Essaimage" attrs="{'invisible': [('type_id', '!=', (%(etic_partner.type_essaimage)d))]}"> <group> - <field name="essaimage_status_id" options="{'no_open': True, 'no_create': True}"/> <field name="convention_date1"/> <field name="convention_date2"/> <field name="exchange_summary"/> -- GitLab