2013-11-16 22:43:06 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
2013-12-17 15:26:05 +00:00
|
|
|
<data>
|
2013-11-16 22:43:06 +00:00
|
|
|
|
2014-01-30 23:39:51 +00:00
|
|
|
<template id="cart_delivery" name="Delivery Costs" inherit_id="website_sale.total">
|
2013-12-18 14:27:59 +00:00
|
|
|
<xpath expr="//tr[@id='order_total_taxes']" position="after">
|
|
|
|
<tr class="text-muted" id="order_delivery">
|
|
|
|
<td><abbr title="Delivery will be updated after choosing a new delivery method">Delivery:</abbr></td>
|
|
|
|
<td class="text-right">
|
|
|
|
<span t-field="website_sale_order.amount_delivery" t-field-options='{
|
|
|
|
"widget": "monetary",
|
|
|
|
"display_currency": "website.pricelist_id.currency_id"
|
|
|
|
}'/>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</xpath>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="payment_delivery" name="Delivery Costs" inherit_id="website_sale.payment">
|
2013-11-16 22:43:06 +00:00
|
|
|
<xpath expr="//t[@t-set='head']" position="inside">
|
|
|
|
<script type="text/javascript" src="/website_sale_delivery/static/src/js/website_sale_delivery.js"></script>
|
|
|
|
</xpath>
|
|
|
|
|
2013-12-17 15:26:05 +00:00
|
|
|
<xpath expr="//div[@id='payment_method']" position="before">
|
2014-01-17 15:46:48 +00:00
|
|
|
<div t-if="deliveries" class="row" id="delivery_carrier">
|
2013-12-17 15:26:05 +00:00
|
|
|
<div class="col-lg-5 col-sm-6">
|
2014-01-23 10:47:05 +00:00
|
|
|
<h4>Choose your Delivery Method</h4>
|
2013-12-17 15:26:05 +00:00
|
|
|
<ul class="list-unstyled">
|
|
|
|
<li t-foreach="deliveries" t-as="delivery">
|
|
|
|
<label>
|
|
|
|
<input t-att-value="delivery.id" type="radio" name="delivery_type"
|
2014-01-10 10:28:58 +00:00
|
|
|
t-att-checked="order.carrier_id and order.carrier_id.id == delivery.id and 'checked' or False"/>
|
2013-12-17 15:26:05 +00:00
|
|
|
<span t-field="delivery.name"/>
|
|
|
|
<span class="badge" t-field="delivery.price"
|
|
|
|
t-field-options='{
|
|
|
|
"widget": "monetary",
|
|
|
|
"display_currency": "website.pricelist_id.currency_id"
|
|
|
|
}'/>
|
|
|
|
</label>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-11-16 22:43:06 +00:00
|
|
|
</xpath>
|
|
|
|
</template>
|
|
|
|
|
2013-12-17 15:26:05 +00:00
|
|
|
</data>
|
2013-11-16 22:43:06 +00:00
|
|
|
</openerp>
|