From 8ce89736e9df1346809afe235b6e16bd97117710 Mon Sep 17 00:00:00 2001
From: Martin Trigaux <mat@odoo.com>
Date: Wed, 19 Nov 2014 11:06:40 +0100
Subject: [PATCH] [FIX] web: force company logo refresh per db

The company_logo is cached and was not refreshed when switching between database, still showing the logo of the company of the previous database
Fixes #2738
---
 addons/web/views/webclient_templates.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/addons/web/views/webclient_templates.xml b/addons/web/views/webclient_templates.xml
index 98e506863c15..4fa84bf96a79 100644
--- a/addons/web/views/webclient_templates.xml
+++ b/addons/web/views/webclient_templates.xml
@@ -250,7 +250,7 @@
                 <t t-set="body_classname" t-value="'oe_single_form'"/>
                 <div class="oe_single_form_container modal-content">
                     <div class="oe_single_form_logo">
-                        <img src="/web/binary/company_logo"/>
+                        <img t-attf-src="/web/binary/company_logo{{ '?dbname='+db if db else '' }}"/>
                     </div>
                     <hr/>
                     <t t-raw="0"/>
-- 
GitLab