diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-04-11 19:57:30 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-04-11 19:57:30 +0200 |
| commit | d0740bedb99f15c26c0aab611043b2fbe6bb52c0 (patch) | |
| tree | 346fa1a2754100ae20b24ef58142b1f60ecb6cf6 /addons/gamification/data | |
| parent | 5a94881b329dbefa76f83a7a9443b17d979cc17e (diff) | |
[IMP] gamification: messages posted on user when receiving a badge
now have a subtype, to ease their search.
bzr revid: tde@openerp.com-20140411175730-hq06b7qezurzymj6
Diffstat (limited to 'addons/gamification/data')
| -rw-r--r-- | addons/gamification/data/badge.xml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/addons/gamification/data/badge.xml b/addons/gamification/data/badge.xml index 5a390be9deb..33d02bf016e 100644 --- a/addons/gamification/data/badge.xml +++ b/addons/gamification/data/badge.xml @@ -23,7 +23,6 @@ <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> @@ -32,6 +31,16 @@ <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> + </data> |
