summaryrefslogtreecommitdiff
path: root/addons/web
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2016-09-08 16:17:04 +0200
committerChristophe Matthieu <chm@odoo.com>2016-09-08 16:17:04 +0200
commit2adcf523cfe6fff88c62df017880ca8c3b321c15 (patch)
treef46bcd2ceb34fc83cf735d32f715b3dc077ecbff /addons/web
parent8bb4d9df688c4e97e0f83cbe136685e8aee36c3c (diff)
[FIX] web: company image not update when use 'Edit Company data' button
Wrong class selector and must add '#' to force the browser to reload the picture because the picture is in the cache with the previous cache informations.
Diffstat (limited to 'addons/web')
-rw-r--r--addons/web/static/src/js/web_client.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/web_client.js b/addons/web/static/src/js/web_client.js
index 081ec244b99..4a9ce5e11ff 100644
--- a/addons/web/static/src/js/web_client.js
+++ b/addons/web/static/src/js/web_client.js
@@ -59,10 +59,10 @@ return AbstractWebClient.extend({
toggle_bars: function(value) {
this.$('tr:has(td.navbar),.oe_leftbar').toggle(value);
},
- update_logo: function() {
+ update_logo: function(reload) {
var company = session.company_id;
var img = session.url('/web/binary/company_logo' + '?db=' + session.db + (company ? '&company=' + company : ''));
- this.$('.oe_logo img').attr('src', '').attr('src', img);
+ this.$('.o_sub_menu_logo img').attr('src', '').attr('src', img + (reload ? "#" + Date.now() : ''));
this.$('.oe_logo_edit').toggleClass('oe_logo_edit_admin', session.uid === 1);
},
logo_edit: function(ev) {