odoo18/addons/website_sale_mondialrelay/views/templates.xml

34 lines
1.4 KiB
XML

<odoo>
<template
id="website_sale_mondialrelay_billing_address_row"
inherit_id="website_sale.billing_address_row"
>
<label id="use_delivery_as_billing_label" position="attributes">
<attribute name="title">Unavailable with Mondial Relay</attribute>
<attribute name="data-bs-toggle">tooltip</attribute>
<attribute name="data-bs-trigger">hover focus</attribute>
</label>
</template>
<template id="website_sale_mondialrelay_address_kanban" inherit_id="website_sale.address_kanban">
<xpath expr="//t[@t-esc='contact']" position="before">
<t t-if="contact.is_mondialrelay">
<img class="float-end" title="Mondial Relay" height="20px" src="/website_sale_mondialrelay/static/src/img/logo.png" />
</t>
</xpath>
<div name="address_card" position="attributes">
<attribute name="t-att-data-is-mondialrelay">contact.is_mondialrelay</attribute>
</div>
</template>
<template id="website_sale_mondialrelay_address_on_payment" inherit_id="website_sale.address_on_payment">
<xpath expr="//span[@t-out='order.partner_shipping_id']" position="before">
<t t-if="order.partner_shipping_id.is_mondialrelay" >
<img src="/website_sale_mondialrelay/static/src/img/logo.png" title="Mondial Relay" height="20px" />
</t>
</xpath>
</template>
</odoo>