[FIX] website_sale_delivery: show delivery options for free products
Businesses may need to distribute free products via Odoo eCommerce. However, it wasn't possible because Delivery section was inside conditional block `t-if='website_sale_order.amount_total`` [1]. Fix it by putting the Deliveries just before that block. [1]: https://github.com/odoo/odoo/blob/a93ed75cb80f16f48dda15058d333b33ccb430d3/addons/website_sale/views/templates.xml#L1564-L1565 opw-3115137 closes odoo/odoo#112712 X-original-commit: 9cd552795644658c3a5ed2bc16c18d93781bede1 Signed-off-by: William Braeckman (wbr) <wbr@odoo.com> Signed-off-by: Ivan Elizaryev (iel) <iel@odoo.com>
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
</template>
|
||||
|
||||
<template id="payment_delivery" name="Delivery Costs" inherit_id="website_sale.payment">
|
||||
<xpath expr="//div[@id='payment_method']" position="before">
|
||||
<xpath expr="//t[@t-if='website_sale_order.amount_total']" position="before">
|
||||
<div t-if="deliveries" id="delivery_carrier">
|
||||
<t t-set="delivery_nb" t-value="len(deliveries)"/>
|
||||
<h3 t-if="delivery_nb > 1" class="mb24">Choose a delivery method</h3>
|
||||
|
||||
Reference in New Issue
Block a user