From 5a53d7d8b9e02e9bad2513e493d1f44c1a13f797 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Fri, 7 Aug 2015 15:06:16 +0200 Subject: [PATCH] [FIX] website_sale: force refresh cart without cache when product removed Firefox keep in cache the value of input. So, when we delete a product line and call location.reload(), firefox remember the value and state of this input and don't refresh with the new value. Adding True as param (forceReload) fixes the problem since it doesn't use old value. Another way will be to add autocomplete="off". ForcedReload (Optional): Is a Boolean flag, which, when it is true, causes the page to always be reloaded from the server. If it is false or not specified, the browser may reload the page from its cache. This closes #7888 #3342 #7491 --- addons/website_sale/static/src/js/website_sale.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website_sale/static/src/js/website_sale.js b/addons/website_sale/static/src/js/website_sale.js index 219956fc024..469be5e7e1f 100644 --- a/addons/website_sale/static/src/js/website_sale.js +++ b/addons/website_sale/static/src/js/website_sale.js @@ -84,7 +84,7 @@ $('.oe_website_sale').each(function () { return; } if (!data.quantity) { - location.reload(); + location.reload(true); return; } var $q = $(".my_cart_quantity");