diff options
| author | Richard Mathot <rim@odoo.com> | 2017-04-24 10:18:37 +0200 |
|---|---|---|
| committer | Richard Mathot <rim@odoo.com> | 2017-04-28 10:19:06 +0200 |
| commit | eefd0de541af99d6886a7c48674231e83411f23f (patch) | |
| tree | 05a90a0fbaeedf17d9868289bf4f5f7036c24b45 /addons/website_forum/data/forum_data.xml | |
| parent | 814d903109b3b5d62cd23cb6a191971e6fe8be8e (diff) | |
[FIX] safer company name as email sender
In some email templates of Odoo, the From: field is generated from the
company name. If this name contains an "&" character, this will lead in
an escaping eg; &
Sender header will look like:
From: Machin & Brol <machinbrol@toto.com>
This case is not well handled by email providers like Gmail, that
splits the line on the ";" and considers there are 2 senders, and then
discards the email.
We then fix the templates, waiting for a better fix in master.
Diffstat (limited to 'addons/website_forum/data/forum_data.xml')
| -rw-r--r-- | addons/website_forum/data/forum_data.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_forum/data/forum_data.xml b/addons/website_forum/data/forum_data.xml index fd26dd91026..e2a213e8d5b 100644 --- a/addons/website_forum/data/forum_data.xml +++ b/addons/website_forum/data/forum_data.xml @@ -106,7 +106,7 @@ <record id="validation_email" model="email.template"> <field name="name">Email Verification</field> <field name="model_id" ref="base.model_res_users"/> - <field name="email_from"><![CDATA[${object.company_id.name} <${(object.company_id.email or user.email)|safe}>]]></field> + <field name="email_from"><![CDATA["${object.company_id.name|safe}" <${(object.company_id.email or user.email)|safe}>]]></field> <field name="email_to">${object.email|safe}</field> <field name="subject"><![CDATA[${object.company_id.name} Forums validation]]></field> <field name="body_html"><