diff --git a/addons/website/static/src/js/website.tour.js b/addons/website/static/src/js/website.tour.js index 408a4c01539..8b1284f0a07 100644 --- a/addons/website/static/src/js/website.tour.js +++ b/addons/website/static/src/js/website.tour.js @@ -77,7 +77,11 @@ website.Tour = openerp.Class.extend({ website.Tour.busy = true; - this.localStorage.setItem("tour-"+this.id+"-test-automatic", automatic); + if (automatic) { + this.localStorage.setItem("tour-"+this.id+"-test-automatic", true); + } else { + this.localStorage.removeItem("tour-"+this.id+"-test-automatic"); + } this.automatic = automatic; if (this.path) {