[FIX] website_sale: show pickup locations when the radio is checked

In the commit 671640c part of the commit 6ae9c9c was removed
inadvertently. After this commit pickup locations will be displayed when
the delivery carrier is pre-selected.

closes odoo/odoo#153259

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Valeriya(vchu)
2024-02-08 18:24:11 +00:00
parent 07b2c95369
commit 0a89ff8d76
@@ -358,7 +358,7 @@ publicWidget.registry.websiteSaleDelivery = publicWidget.Widget.extend({
const radio = ev.currentTarget.closest('.o_delivery_carrier_select').querySelector(
'input[type="radio"]'
);
if (radio.checked) {
if (radio.checked && !this._shouldDisplayPickupLocations(ev)) {
return;
}