diff options
| author | Okan SUMER (osu) <osu@odoo.com> | 2020-03-27 14:13:16 +0000 |
|---|---|---|
| committer | Jeremy Kersten <jke@odoo.com> | 2020-05-12 14:03:19 +0000 |
| commit | 5d55426eb95c2258ab6ee6700866ef5825afb412 (patch) | |
| tree | e0ae1ec0d2c0222dcb50a94326c48c5098606d6d /addons/gamification/views | |
| parent | c47777f22a5c63277b16881a11d2459cfe12f45d (diff) | |
[FIX] gamification: avoid epty label in email template
This fix hide the line "Next rank" when the user reached the last rank
closes odoo/odoo#48540
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/gamification/views')
| -rw-r--r-- | addons/gamification/views/mail_templates.xml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/gamification/views/mail_templates.xml b/addons/gamification/views/mail_templates.xml index 641d505567a..e8a6a6a38c7 100644 --- a/addons/gamification/views/mail_templates.xml +++ b/addons/gamification/views/mail_templates.xml @@ -20,7 +20,9 @@ <p> You just reached a new rank : <strong>${object.rank_id.name}</strong> </p> - <p>Continue your work to become a <strong>${object.next_rank_id.name}</strong> !</p> + % if object.next_rank_id.name + <p>Continue your work to become a <strong>${object.next_rank_id.name}</strong> !</p> + % endif <div style="margin: 16px 0px 16px 0px;"> % set gamification_redirection_data = object.get_gamification_redirection_data() % for data in gamification_redirection_data |
