[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:
Karan Bosamia
2022-05-30 08:28:56 +02:00
parent 23c24843cc
commit d9cbb91ef3
2 changed files with 2 additions and 2 deletions
@@ -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,