diff --git a/views/res_partner.xml b/views/res_partner.xml index 8724656afcbc3d2d1a061ad8bec4a506c4e90a55..6828c349cea497ae86eecfffe7e00e24f95b7af0 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"/>