[FIX] web: force company logo refresh per db
authorMartin Trigaux <mat@odoo.com>
Wed, 19 Nov 2014 10:06:40 +0000 (11:06 +0100)
committerMartin Trigaux <mat@odoo.com>
Wed, 19 Nov 2014 11:50:27 +0000 (12:50 +0100)
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

index 98e5068..4fa84bf 100644 (file)
                 <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"/>