summaryrefslogtreecommitdiff
path: root/addons/mail/data
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-10-20 17:57:21 +0200
committerChristophe Simonis <chs@odoo.com>2017-10-20 17:57:21 +0200
commit5ea0f55d654f4c4c928fa1c4ea3ebcf7d1613812 (patch)
treece5bb069ae0d18c882b9ed707bddf36a987bc913 /addons/mail/data
parent635572b49d5b70a32b717cf2d52da49b10aac28e (diff)
parentbee0c11ef7fdd2f289b1b5d33bf4574e519d8fcf (diff)
[MERGE] forward port branch saas-15 up to bee0c11ef7f
Diffstat (limited to 'addons/mail/data')
-rw-r--r--addons/mail/data/mail_data.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml
index 36c26f56eb4..34789916a48 100644
--- a/addons/mail/data/mail_data.xml
+++ b/addons/mail/data/mail_data.xml
@@ -71,6 +71,7 @@
<field name="model_id" ref="mail.model_mail_message"/>
<field name="auto_delete" eval="True"/>
<field name="body_html"><![CDATA[
+% set company = ctx.get('company', user.company_id)
<div>
% if ctx.get('has_button_access'):
<div itemscope itemtype="http://schema.org/EmailMessage">
@@ -110,7 +111,7 @@
% endif
</td>
<td valign="center" align="right">
- <img src="/logo.png" style="padding: 0px; margin: 0px; height: auto; max-width: 80px; max-height: 40px;" alt="${user.company_id.name}">
+ <img src="/logo.png?company=${company.id}" style="padding: 0px; margin: 0px; height: auto; max-width: 80px; max-height: 40px;" alt="${company.name}">
</td>
</tr>
<tr>