You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<?xml version="1.0" encoding="utf-8"?> <odoo>
<template id="vracoop_address" inherit_id="website_sale.address"> <xpath expr="//div[hasclass('checkbox')]" position="replace"> <div t-if="website.type_livraison" class="checkbox"> <label> <input type="checkbox" id='shipping_use_same' class="mr8" name='use_same' value="1" checked='checked'/>Livrer à la meme adresse <span class='ship_to_other text-muted' style="display: none">&nbsp;(<i>Votre adresse de livraison vous sera demandée plus tard) </i></span> </label> </div> <div t-else="" class="checkbox"> <input type="hidden" id='shipping_use_same' class="mr8" name='use_same' value="1" checked='checked'/> </div> </xpath>
<xpath expr="//select[@id='country_id']" position="replace"> <select id="country_id" name="country_id" t-attf-class="form-control #{error.get('country_id') and 'is-invalid' or ''}"> <t t-foreach="countries" t-as="c"> <t t-if="country"> <option t-att-value="c.id" t-att-selected="c.id == (country and country.id or -1)"> <t t-esc="c.name" /> </option> </t> <t t-else=""> <t t-if="c.id == 75"> <option t-att-value="c.id" selected="1"> <t t-esc="c.name" /> </option> </t> <t t-else=""> <option t-att-value="c.id" t-att-selected="c.id == (country and country.id or -1)"> <t t-esc="c.name" /> </option> </t> </t> </t> </select> </xpath>
<xpath expr="//input[@name='field_required']" position="before"> <div class="mb-3"> * Champ obligatoire </div> </xpath> </template>
</odoo>
|