From eac5591cacd6f8e66309024071106b97766cc922 Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Fri, 15 Jun 2012 13:37:06 +0200 Subject: [PATCH] [FIX] reload after install lp bug: https://launchpad.net/bugs/1011536 fixed bzr revid: al@openerp.com-20120615113706-ybb1nim66m3ft5c4 --- addons/web/static/src/js/coresetup.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/addons/web/static/src/js/coresetup.js b/addons/web/static/src/js/coresetup.js index 42d4456..9b40b62 100644 --- a/addons/web/static/src/js/coresetup.js +++ b/addons/web/static/src/js/coresetup.js @@ -620,13 +620,18 @@ instance.web.Reload = instance.web.Widget.extend({ this.menu_id = (params && params.menu_id) || false; }, start: function() { + var l = window.location; + var timestamp = new Date().getTime(); + var search = "?ts=" + timestamp; + if (l.search) { + search = l.search + "&ts=" + timestamp; + } + var hash = l.hash; if (this.menu_id) { - // open the given menu id - var url_without_fragment = window.location.toString().split("#", 1)[0]; - window.location = url_without_fragment + "#menu_id=" + this.menu_id; - } else { - window.location.reload(); + hash = "#menu_id=" + this.menu_id; } + var url = l.protocol + "//" + l.host + l.pathname + search + hash; + window.location = url; } }); -- 1.7.10.4