From d00d90a95e209f40fe1584dcd602892bdad5093a Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Mon, 16 Feb 2015 13:32:06 +0100 Subject: [PATCH] [FIX] web: cached company logo on database change When having several databases in the login form (not monodb mode), when switching from one database to another, if the company logo was different, the company logo could be the logo of the database you came from. fixes #5291 opw-628131 --- addons/web/static/src/js/chrome.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index fc40b1e7bf2..a5a6df17fcf 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -1290,7 +1290,7 @@ instance.web.WebClient = instance.web.Client.extend({ }, update_logo: function() { var company = this.session.company_id; - var img = this.session.url('/web/binary/company_logo' + (company ? '?company=' + company : '')); + var img = this.session.url('/web/binary/company_logo' + '?db=' + this.session.db + (company ? '&company=' + company : '')); this.$('.oe_logo img').attr('src', '').attr('src', img); this.$('.oe_logo_edit').toggleClass('oe_logo_edit_admin', this.session.uid === 1); },