From 2adcf523cfe6fff88c62df017880ca8c3b321c15 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 8 Sep 2016 16:17:04 +0200 Subject: [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. --- addons/web/static/src/js/web_client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/web/static/src/js/web_client.js') 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) { -- cgit v1.2.3