Skip to content

Commit

Permalink
[FIX] website_sale: show pickup locations when the radio is checked
Browse files Browse the repository at this point in the history
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#153259

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
  • Loading branch information
vchu-odoo committed Feb 8, 2024
1 parent 07b2c95 commit 0a89ff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/website_sale/static/src/js/website_sale_delivery.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0a89ff8

Please sign in to comment.