[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
This commit is contained in:
Denis Ledoux
2015-02-16 13:34:58 +01:00
parent 8518a963e0
commit d00d90a95e
+1 -1
View File
@@ -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);
},