Skip to content
Snippets Groups Projects
Commit d9cbb91e authored by Karan Bosamia's avatar Karan Bosamia
Browse files

[FIX][gamification]: Validate mail template

'name' field not present in 'gamification.goal' model
which causes error while rendering mail template such that
object 'gamification.goal' has no attribute 'name'
opw-2844136

closes odoo/odoo#92300

Closes: https://github.com/odoo/odoo/pull/91439


X-original-commit: 0a1970e2
Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 23c24843
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@
<field name="partner_to">{{ object.user_id.partner_id.id }}</field>
<field name="body_html" type="html">
<div>
<strong>Reminder <t t-out="object.name or ''"/></strong><br/>
<strong>Reminder</strong><br/>
You have not updated your progress for the goal <t t-out="object.definition_id.name or ''"></t> (currently reached at <t t-out="object.completeness or ''"></t>%) for at least <t t-out="object.remind_update_delay or ''"></t> days. Do not forget to do it.
<br/><br/>
Thank you,
......
......@@ -110,7 +110,7 @@ msgstr ""
#: model:mail.template,body_html:gamification.email_template_goal_reminder
msgid ""
"<div>\n"
" <strong>Reminder <t t-out=\"object.name or ''\"/></strong><br/>\n"
" <strong>Reminder</strong><br/>\n"
" You have not updated your progress for the goal <t t-out=\"object.definition_id.name or ''\"/> (currently reached at <t t-out=\"object.completeness or ''\"/>%) for at least <t t-out=\"object.remind_update_delay or ''\"/> days. Do not forget to do it.\n"
" <br/><br/>\n"
" Thank you,\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment