diff options
| author | Thibault Delavallée <tde@odoo.com> | 2019-04-23 12:29:35 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-04-23 14:26:50 +0000 |
| commit | 0b74c9ab6e2e190d3c3aed1a1c075cec36a1ad94 (patch) | |
| tree | 08ae6efc2f1ab5b835ca0eafc437737d821b19f0 /addons/hr/data | |
| parent | 25c2c5e01209b57ce5e4213d2856a98a0251d0b8 (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/hr/data')
| -rw-r--r-- | addons/hr/data/hr_data.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr/data/hr_data.xml b/addons/hr/data/hr_data.xml index 869a74a8350..ab7165fee25 100644 --- a/addons/hr/data/hr_data.xml +++ b/addons/hr/data/hr_data.xml @@ -64,7 +64,7 @@ <field name="name">HR: mailgateway unknown employee bounce</field> <field name="model_id" ref="base.model_ir_module_module"/> <field name="subject">Your document has not been created</field> - <field name="email_from">${user.email}</field> + <field name="email_from">${user.email_formatted | safe}</field> <field name="email_to">${ctx['email_to']|safe}</field> <field name="body_html" type="html"> <table border="0" cellpadding="0" cellspacing="0" style="padding-top: 16px; background-color: #F1F1F1; font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"><tr><td align="center"> |
