[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:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user