blob: e8a6a6a38c7b00686049e53817a5387b97a301f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="mail_template_data_new_rank_reached" model="mail.template">
<field name="name">User: New rank reached</field>
<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="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;">
<table style="width:600px;margin:0px auto;background:white;border:1px solid #e1e1e1;">
<tbody>
<tr>
<td style="padding:15px 20px 10px 20px;">
<p>
Congratulations
<span>${object.name or ''}</span>!
</p>
<p>
You just reached a new rank : <strong>${object.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
% set url = data['url']
% set label = data['label']
<a href="${url}" style="background-color: #875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">${label}</a>
% endfor
</div>
</td>
<td style="padding:15px 20px 10px 20px;">
<p style="text-align: center;">
<img src="/web/image/gamification.karma.rank/${object.rank_id.id}/image_128"/>
</p>
</td>
</tr>
% if user.signature
<tr>
<td style="padding:15px 20px 10px 20px;">
${user.signature | safe}
</td>
</tr>
% endif
</tbody>
</table>
</div></field>
<field name="lang">${object.lang}</field>
<field name="auto_delete" eval="True"/>
</record>
</data>
</odoo>
|