769eafb483
Flectra is Forked from Odoo v11 commit : (6135e82d73
)
84 lines
3.4 KiB
XML
84 lines
3.4 KiB
XML
<odoo>
|
|
<data noupdate="1">
|
|
<record id="badge_good_job" model="gamification.badge">
|
|
<field name="name">Good Job</field>
|
|
<field name="description">You did great at your job.</field>
|
|
<field name="rule_auth">everyone</field>
|
|
<field name="image" type="base64" file="gamification/static/img/badge_good_job-image.png"/>
|
|
</record>
|
|
|
|
<record id="badge_problem_solver" model="gamification.badge">
|
|
<field name="name">Problem Solver</field>
|
|
<field name="description">No one can solve challenges like you do.</field>
|
|
<field name="rule_auth">everyone</field>
|
|
<field name="image" type="base64" file="gamification/static/img/badge_problem_solver-image.png"/>
|
|
</record>
|
|
|
|
<record id="badge_hidden" model="gamification.badge">
|
|
<field name="name">Hidden</field>
|
|
<field name="description">You have found the hidden badge</field>
|
|
<field name="rule_auth">nobody</field>
|
|
<field name="image" type="base64" file="gamification/static/img/badge_hidden-image.png"/>
|
|
<field name="active" eval="False" />
|
|
</record>
|
|
|
|
<record id="badge_idea" model="gamification.badge">
|
|
<field name="name">Brilliant</field>
|
|
<field name="description">With your brilliant ideas, you are an inspiration to others.</field>
|
|
<field name="rule_auth">everyone</field>
|
|
<field name="rule_max">True</field>
|
|
<field name="rule_max_number">2</field>
|
|
<field name="image" type="base64" file="gamification/static/img/badge_idea-image.png"/>
|
|
</record>
|
|
|
|
<!-- subtype for badge allocation -->
|
|
<record id="mt_badge_granted" model="mail.message.subtype">
|
|
<field name="name">Badge Granted</field>
|
|
<field name="res_model">res.users</field>
|
|
<field name="default" eval="True"/>
|
|
<field name="hidden" eval="True"/>
|
|
<field name="description">Badge Granted</field>
|
|
</record>
|
|
|
|
<record id="email_template_badge_received" model="mail.template">
|
|
<field name="name">Received Badge</field>
|
|
<field name="subject">New badge ${object.badge_id.name} granted</field>
|
|
<field name="model_id" ref="gamification.model_gamification_badge_user"/>
|
|
<field name="partner_to">${object.user_id.partner_id.id}</field>
|
|
<field name="lang">${object.user_id.lang}</field>
|
|
<field name="body_html" type="xml">
|
|
<div>
|
|
<p>Congratulations ${object.user_id.name} !</p>
|
|
<p>You just received badge <strong>${object.badge_id.name}</strong> !</p>
|
|
</div>
|
|
<div>
|
|
% if object.badge_id.description
|
|
<table cellspacing="0" cellpadding="0" border="0" style="width: 600px; margin-top: 5px;">
|
|
<tbody><tr>
|
|
<td valign="center">
|
|
<img src="/web/image/gamification.badge/${object.badge_id.id}/image/80x80" style="padding: 0px; margin: 0px; height: auto; width: 80px;" alt="${user.company_id.name}"/>
|
|
</td>
|
|
<td valign="center">
|
|
<cite>${object.badge_id.description}</cite>
|
|
</td>
|
|
</tr></tbody>
|
|
</table>
|
|
% endif
|
|
</div>
|
|
<div>
|
|
<p>
|
|
% if object.sender_id
|
|
This badge was granted by <strong>${object.sender_id.name}</strong>.
|
|
% endif
|
|
</p>
|
|
<p>
|
|
% if object.comment
|
|
<em>${object.comment}</em>
|
|
% endif
|
|
</p>
|
|
</div>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|