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/gamification/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/gamification/data')
| -rw-r--r-- | addons/gamification/data/goal_base.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/gamification/data/goal_base.xml b/addons/gamification/data/goal_base.xml index e26a64765f0..ca1061b6d24 100644 --- a/addons/gamification/data/goal_base.xml +++ b/addons/gamification/data/goal_base.xml @@ -5,9 +5,10 @@ <!--Email template --> <record id="email_template_goal_reminder" model="mail.template"> - <field name="name">Reminder for Goal Update</field> + <field name="name">Goal: Reminder for Goal Update</field> <field name="model_id" ref="gamification.model_gamification_goal"/> <field name="lang">${object.user_id.lang}</field> + <field name="partner_to">${object.user_id.partner_id.id}</field> <field name="body_html" type="html"> <div> <strong>Reminder ${object.name}</strong><br/> |
