summaryrefslogtreecommitdiff
path: root/addons/web/static
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2014-11-27 15:19:39 +0100
committerDenis Ledoux <dle@odoo.com>2014-11-27 15:21:25 +0100
commit62bc63e44f470ce0d6003fcc1fb9fd2d16350e4e (patch)
tree723b2b111abbafbcbe74cbac33a79f7a8c7d141f /addons/web/static
parentc854404a2c9c21247da1ebcd9305206ac063b7b4 (diff)
[FIX] web: force company_logo change on company change
In multi company environment, the company logo was not updated on company change in the user preferences This disrupted the end user, as he might think the company change did not happen.
Diffstat (limited to 'addons/web/static')
-rw-r--r--addons/web/static/src/js/chrome.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js
index bbf36152735..a9a458c8e78 100644
--- a/addons/web/static/src/js/chrome.js
+++ b/addons/web/static/src/js/chrome.js
@@ -1292,7 +1292,8 @@ instance.web.WebClient = instance.web.Client.extend({
}
},
update_logo: function() {
- var img = this.session.url('/web/binary/company_logo');
+ var company = this.session.company_id;
+ var img = this.session.url('/web/binary/company_logo' + (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);
},