summaryrefslogtreecommitdiff
path: root/addons/website_profile/data
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2019-04-23 12:29:35 +0000
committerThibault Delavallée <tde@odoo.com>2019-04-23 14:26:50 +0000
commit0b74c9ab6e2e190d3c3aed1a1c075cec36a1ad94 (patch)
tree08ae6efc2f1ab5b835ca0eafc437737d821b19f0 /addons/website_profile/data
parent25c2c5e01209b57ce5e4213d2856a98a0251d0b8 (diff)
[FIX][IMP] various: improve recipients computation in mail templates
Purpose: use more email_formatted when possible, clean and simplify email_from, email_to and partner_to computation. Next step is to try to extract some common patterns in tools or methods in order to simplify template creation and customization. Related to task 1972615 Linked to PR #32872
Diffstat (limited to 'addons/website_profile/data')
-rw-r--r--addons/website_profile/data/profile_data.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website_profile/data/profile_data.xml b/addons/website_profile/data/profile_data.xml
index 5331fa23e8e..119f613af6c 100644
--- a/addons/website_profile/data/profile_data.xml
+++ b/addons/website_profile/data/profile_data.xml
@@ -7,8 +7,8 @@
<field name="name">Profile: Email Verification</field>
<field name="model_id" ref="base.model_res_users"/>
<field name="subject">${object.company_id.name} Profile validation</field>
- <field name="email_from">${('&lt;%s&gt;' % (object.env.user.company_id.email or user.email)) | safe}</field>
- <field name="email_to">${object.email|safe}</field>
+ <field name="email_from">${user.email_formatted | safe}</field>
+ <field name="email_to">${object.email_formatted | safe}</field>
<field name="body_html" type="html">
<table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #F1F1F1; color: #454748; width: 100%; border-collapse:separate;"><tr><td align="center">
<table border="0" cellpadding="0" cellspacing="0" width="590" style="padding: 16px; background-color: white; color: #454748; border-collapse:separate;">