[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: 0a1970e218527440debb8c75fff2fa47de5e2677 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user