62 lines
2.8 KiB
XML
62 lines
2.8 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="lang">${object.user_id.lang}</field>
|
|
<field name="body_html"><![CDATA[
|
|
<p>Congratulation, you have received the badge <strong>${object.badge_id.name}</strong> !
|
|
% if object.sender_id
|
|
This badge was granted by <strong>${object.sender_id.name}</strong>.
|
|
% endif
|
|
</p>
|
|
|
|
% if object.comment
|
|
<p><em>${object.comment}</em></p>
|
|
% endif
|
|
]]></field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|