summaryrefslogtreecommitdiff
path: root/addons/mail/data/mail_data.xml
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2017-10-09 12:59:13 +0200
committerNicolas Martinelli <nim@odoo.com>2017-10-20 10:41:24 +0200
commite414bae770208d5e3530bfb2a502092cb2dc2a0c (patch)
treec477e7d63cae3d962a2e5a26ed82d5e372f7ccd8 /addons/mail/data/mail_data.xml
parente180a03af8b8dd26dacb7f1a8dac058542034e2d (diff)
[FIX] mail: company logo
- Activate multi-company, create companies A and B - Set 2 companies on a user When a message is sent (for example, thanks to the chatter), the notification email always contains the logo of the same company, whatever the company of the user or the company of the object. This is a complement of commit 7a03f9ce93, applied to notifications. Closes #20088 opw-772405
Diffstat (limited to 'addons/mail/data/mail_data.xml')
-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 4ca940fecd1..32e97f23948 100644
--- a/addons/mail/data/mail_data.xml
+++ b/addons/mail/data/mail_data.xml
@@ -66,6 +66,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">
@@ -105,7 +106,7 @@
% endif
</td>
<td valign="center" align="right">
- <img src="/logo.png" style="padding: 0px; margin: 0px; height: auto; width: 80px;" alt="${user.company_id.name}">
+ <img src="/logo.png?company=${company.id}" style="padding: 0px; margin: 0px; height: auto; width: 80px;" alt="${company.name}">
</td>
</tr>
<tr>