[FIX] website_sale: Allow users to see delivery cost with carrier radio input
Steps: - Install `website_sale` - Enable `On-site payment & picking` - Set 200$ for on-site picking fees - Go to /shop - Put a product in the cart and go to checkout If you click in the element box containing on-site picking it will compute the delivery fees, but if you select it with the radio button it will not. closes odoo/odoo#140376 X-original-commit: 3d81439f7ded68a2002a8585da63c6d72a7b65ca Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com> Signed-off-by: Achraf Ben Azzouz (abz) <abz@odoo.com>
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
</template>
|
||||
|
||||
<template id="payment_delivery_methods">
|
||||
<input t-att-value="delivery.id" t-att-id="'delivery_%i' % delivery.id" t-att-delivery_type="delivery.delivery_type" type="radio" name="delivery_type" t-att-checked="order.carrier_id and order.carrier_id.id == delivery.id and 'checked' or False"/>
|
||||
<input class="pe-none" t-att-value="delivery.id" t-att-id="'delivery_%i' % delivery.id" t-att-delivery_type="delivery.delivery_type" type="radio" name="delivery_type" t-att-checked="order.carrier_id and order.carrier_id.id == delivery.id and 'checked' or False"/>
|
||||
<label class="label-optional" t-field="delivery.name"/>
|
||||
<span class="o_wsale_delivery_badge_price float-end fw-bold" name="price">Select to compute delivery rate</span>
|
||||
<t t-set='delivery_method' t-value="delivery.delivery_type+'_use_locations'" />
|
||||
|
||||
Reference in New Issue
Block a user