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/account/data/mail_template_data.xml | |
| 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/account/data/mail_template_data.xml')
| -rw-r--r-- | addons/account/data/mail_template_data.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/data/mail_template_data.xml b/addons/account/data/mail_template_data.xml index d5f4482e4a9..f384d3f49cc 100644 --- a/addons/account/data/mail_template_data.xml +++ b/addons/account/data/mail_template_data.xml @@ -8,7 +8,7 @@ <record id="email_template_edi_invoice" model="mail.template"> <field name="name">Invoice: Send by email</field> <field name="model_id" ref="account.model_account_invoice"/> - <field name="email_from">${object.user_id.email_formatted |safe}</field> + <field name="email_from">${(object.user_id.email_formatted or user.email_formatted) |safe}</field> <field name="partner_to">${object.partner_id.id}</field> <field name="subject">${object.company_id.name} Invoice (Ref ${object.number or 'n/a'})</field> <field name="body_html" type="html"> |
