Skip to content
Snippets Groups Projects
Commit 8ab1e9d8 authored by Achraf (abz)'s avatar Achraf (abz)
Browse files

[FIX] gamification: Allow users to verify their emails even when disconnected


When a user clicks on the link in the verification email to verify his email while being disconnected there is an error specifying that the sender is not defined

This pr defines the `email_from` field via the `User: New rank reached` template

opw-2469306

closes odoo/odoo#75775

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 28a303a6
Branches
Tags
No related merge requests found
......@@ -6,6 +6,7 @@
<field name="model_id" ref="base.model_res_users"/>
<field name="subject">New rank: ${object.rank_id.name}</field>
<field name="email_to"></field>
<field name="email_from">${user.email_formatted or object.company_id.partner_id.email_formatted or object.email_formatted | safe}</field>
<field name="partner_to">${object.partner_id.id}</field>
<field name="body_html" type="html">
<div style="background:#F0F0F0;color:#515166;padding:10px 0px;font-family:Arial,Helvetica,sans-serif;font-size:14px;">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment