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

Translate address placeholders

parent 34a3645c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -44,6 +44,18 @@
<attribute name="invisible">True</attribute>
</field>
<field name="title" position="replace"/>
<field name="street" position="attributes">
<attribute name="placeholder">Rue</attribute>
</field>
<field name="street2" position="attributes">
<attribute name="placeholder">Rue 2</attribute>
</field>
<field name="street3" position="attributes">
<attribute name="placeholder">Rue 3</attribute>
</field>
<field name="zip_id" position="attributes">
<attribute name="placeholder">CP / Ville autocomplétion...</attribute>
</field>
<field name="zip" position="replace"/>
<field name="city" position="before">
<field name="zip" placeholder="Code postal" class="o_address_city"
......@@ -55,6 +67,9 @@
attrs="{'readonly': ['|', '&amp;', ('type', '=', 'contact'), ('parent_id', '!=', False)]}"
modifiers="{'readonly':['|','&amp;',['type','=','contact'],['parent_id','!=',false]]}"/>
</field>
<field name="state_id" position="attributes">
<attribute name="placeholder">Région</attribute>
</field>
<xpath expr='//form/sheet/group/group[2]' position="replace">
<group name="Infos activités" attrs="{'invisible': [('is_company','=', False)]}">
<field name="certification_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}" attrs="{'invisible': [('is_company','=', False)]}"/>
......@@ -100,6 +115,32 @@
<field name="mandate_id" options="{'no_create': True}" attrs="{'invisible': [('type','!=', 'contact')]}"/>
<field name="ur_id" invisible="1"/>
</xpath>
<xpath expr="//field[@name='child_ids']//form//field[@name='street']" position="attributes">
<attribute name="placeholder">Rue</attribute>
</xpath>
<xpath expr="//field[@name='child_ids']//form//field[@name='street2']" position="attributes">
<attribute name="placeholder">Rue 2</attribute>
</xpath>
<xpath expr="//field[@name='child_ids']//form//field[@name='street3']" position="attributes">
<attribute name="placeholder">Rue 3</attribute>
</xpath>
<xpath expr="//field[@name='child_ids']//form//field[@name='zip_id']" position="attributes">
<attribute name="placeholder">CP / Ville autocomplétion...</attribute>
</xpath>
<xpath expr="//field[@name='child_ids']//form//field[@name='zip']" position="replace"/>
<xpath expr="//field[@name='child_ids']//form//field[@name='city']" position="before">
<field name="zip" placeholder="Code postal" class="o_address_city"
attrs="{'readonly': ['|', '&amp;', ('type', '=', 'contact'), ('parent_id', '!=', False)]}" on_change="1"
modifiers="{'readonly':['|','&amp;',['type','=','contact'], ['parent_id','!=',false]]}"/>
</xpath>
<xpath expr="//field[@name='child_ids']//form//field[@name='city']" position="after">
<field name="cedex" placeholder="Cedex" class="o_address_city"
attrs="{'readonly': ['|', '&amp;', ('type', '=', 'contact'), ('parent_id', '!=', False)]}"
modifiers="{'readonly':['|','&amp;',['type','=','contact'],['parent_id','!=',false]]}"/>
</xpath>
<xpath expr="//field[@name='child_ids']//form//field[@name='state_id']" position="attributes">
<attribute name="placeholder">Région</attribute>
</xpath>
<xpath expr="//field[@name='child_ids']/form//group/group[2]" position="after">
<group attrs="{'invisible': [('type', '!=', 'contact')]}">
<field name="birthyear"/>
......
......@@ -463,7 +463,7 @@
<field name="city_id" invisible="1"/>
<field name="cedex" placeholder="Cedex" class="o_address_city"
attrs="{'readonly': [('type', '=', 'contact'), ('parent_id', '!=', False)]}" modifiers="{'readonly':[['type','=','contact'],['parent_id','!=',false]]}"/>
<field name="state_id" class="o_address_zip" placeholder="State"
<field name="state_id" class="o_address_zip" placeholder="Région"
options='{"no_open": True, "no_create": True}' context="{'country_id': country_id, 'zip': zip}"/>
<field name="country_id" placeholder="Country" class="o_address_country" options='{"no_open": True, "no_create": True}'/>
</div>
......
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