Skip to content
Extraits de code Groupes Projets
Valider 4c133f1b rédigé par Rémi - Le Filament's avatar Rémi - Le Filament
Parcourir les fichiers

Fix invisible attributes

parent 1fd6429a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -190,7 +190,7 @@
</xpath>
<xpath expr="//field[@name='child_ids']//form//field[@name='mobile']" position="after">
<field name="category_id" options='{"no_open": True, "no_create": True}' widget="many2many_tags" attrs="{'invisible': [('is_company','=', True)]}"/>
<field name="category_id" options='{"no_open": True, "no_create": True}' widget="many2many_tags" attrs="{'invisible': [('type', '!=', 'contact')]}"/>
</xpath>
<xpath expr="//field[@name='child_ids']//form//field[@name='title']" position="attributes">
......@@ -226,7 +226,7 @@
<field name="email" widget="email" on_change="1"/>
<field name="website" attrs="{'invisible': [('is_company','=', False)]}"/>
<field name="ur_id" options='{"no_open": True, "no_create": True}' on_change="1" can_create="false" can_write="false"/>
<field name="category_id" options='{"no_open": True, "no_create": True}' widget="many2many_tags" attrs="{'invisible': [('is_company','=', True)]}"/>
<field name="category_id" options='{"no_open": True, "no_create": True}' widget="many2many_tags" attrs="{'invisible': ['|', ('is_company', '=', True), ('type', '!=', 'contact')]}"/>
<field name="lang" invisible="1"/>
</field>
<xpath expr="//notebook/page[@name='sales_purchases']" position="attributes">
......@@ -755,19 +755,6 @@
<field name="parent_id_onchange" invisible="1"/>
<field name="parent_id" invisible="1"/>
<group col="2">
<group invisible="1">
<field name="street"/>
<field name="street2"/>
<field name="street3"/>
<field name="zip_id"/>
<field name="zip"/>
<field name="city"/>
<field name="cedex"/>
<field name="state_id"/>
<field name="country_id"/>
<field name="type"/>
<field name="category_id"/>
</group>
<group>
<field name="title" placeholder="Madame" options='{"no_open": True, "no_create": True}'/>
<field name="firstname" string="Prénom" required="1"/>
......@@ -851,7 +838,7 @@
<field name="email"/>
<field name="phone" widget="phone"/>
<field name="mobile" widget="phone"/>
<field name="category_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}" />
<field name="category_id" widget="many2many_tags" options="{'color_field': 'color', 'no_create': True}" attrs="{'invisible': [('type','!=', 'contact')]}"/>
<field name="comment" placeholder="internal note..."/>
</group>
<group attrs="{'invisible': [('type', '!=', 'contact')]}">
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter