[FIX] website_sale: add support to intermediate tag in xpath

While updating the checkout page an element was changed from div to t
To handle the intermediate value used by users who installed this version
a new selector was added to the xpath to account for both cases

Previous commit that was trying to fix the same issue 12e5296c1d

closes odoo/odoo#162064

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Lina (liew)
2024-04-19 14:40:06 +00:00
parent fbcfa5b725
commit db8bfda869
@@ -44,7 +44,7 @@
<template id="payment_delivery" name="Delivery Costs" inherit_id="website_sale.payment">
<!-- //t[@t-if='website_sale_order.amount_total'] should be removed in master -->
<xpath expr="//t[@name='website_sale_non_free_cart'] | //t[@t-if='website_sale_order.amount_total']" position="before">
<xpath expr="//div[@name='website_sale_non_free_cart'] | //t[@name='website_sale_non_free_cart'] | //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)"/>
<h4 class="fs-6 small text-uppercase fw-bolder">Choose a delivery method</h4>