From 0b74c9ab6e2e190d3c3aed1a1c075cec36a1ad94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 23 Apr 2019 12:29:35 +0000 Subject: [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 --- addons/website_profile/data/profile_data.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'addons/website_profile/data/profile_data.xml') 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 @@ Profile: Email Verification ${object.company_id.name} Profile validation - ${('<%s>' % (object.env.user.company_id.email or user.email)) | safe} - ${object.email|safe} + ${user.email_formatted | safe} + ${object.email_formatted | safe}
-- cgit v1.2.3