From 433be848d4e2545a9962a54d2dba615b329f73de Mon Sep 17 00:00:00 2001 From: qsm-odoo <qsm@odoo.com> Date: Mon, 14 Oct 2019 11:47:09 +0000 Subject: [PATCH] [FIX] website_sale_product_configurator: fix continue shop When selecting the "Continue shopping" option after adding a configurable product from the products page with "Add to Cart" enabled the top navbar was not updated. Part of https://github.com/odoo/odoo/pull/37132 task-2070507 closes odoo/odoo#38538 X-original-commit: https://github.com/odoo/odoo/commit/9e58f0659e21d0f7e63b127d7a84b505e6aa1fb5 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com> --- .../static/src/js/website_sale_options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale_product_configurator/static/src/js/website_sale_options.js b/addons/website_sale_product_configurator/static/src/js/website_sale_options.js index 5696bd442463..a95e1b06a3df 100644 --- a/addons/website_sale_product_configurator/static/src/js/website_sale_options.js +++ b/addons/website_sale_product_configurator/static/src/js/website_sale_options.js @@ -81,7 +81,7 @@ publicWidget.registry.WebsiteSale.include({ window.location.pathname = path; } var $quantity = $(".my_cart_quantity"); - $quantity.parent().parent().removeClass("d-none", !quantity); + $quantity.parent().parent().removeClass('d-none'); $quantity.html(quantity).hide().fadeIn(600); }); }, -- GitLab