diff options
| author | Thibault Delavallée <tde@odoo.com> | 2019-02-15 11:17:44 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-02-15 17:45:11 +0000 |
| commit | e7b3535884640724a062db042c83a9d5ebca3c78 (patch) | |
| tree | 7b209227aa5f6566ba83d268b61d8a63ddaaf3f0 /addons/gamification/data | |
| parent | 6a9f6876c1e0ac188a11ba69b1f3890d5e71c563 (diff) | |
[REF] gamification: clean next rank motivational implementation
Purpose of this commit is to clean motivational capabilities of gamification
ranks[1]. It makes more sense to store a motivational to achieve on next rank
itself. We therefore rename the field and provide nice demo data that will be
used in elearning use of gamification ranks.
Commit linked to task ID 1941250 and PR #31133.
[1] task ID 1922159 (landed at 91ee6ba5a72fc961227ab1e4ba301c3920c10112)
Diffstat (limited to 'addons/gamification/data')
| -rw-r--r-- | addons/gamification/data/gamification_karma_rank_data.xml | 3 | ||||
| -rw-r--r-- | addons/gamification/data/gamification_karma_rank_demo.xml | 26 |
2 files changed, 22 insertions, 7 deletions
diff --git a/addons/gamification/data/gamification_karma_rank_data.xml b/addons/gamification/data/gamification_karma_rank_data.xml index b91ee3dd4dc..2a5ad0231fe 100644 --- a/addons/gamification/data/gamification_karma_rank_data.xml +++ b/addons/gamification/data/gamification_karma_rank_data.xml @@ -13,9 +13,8 @@ <record id="rank_newbie" model="gamification.karma.rank"> <field name="name">Newbie</field> <field name="description" type="html"><p>You just began the adventure! Welcome!</p></field> - <field name="description_reach_next" type="html"><p>Keep going !</p></field> <field name="karma_min">1</field> <field name="image" type="base64" file="gamification/static/img/rank_newbie_badge.svg"/> </record> </data> -</odoo> +</odoo>
\ No newline at end of file diff --git a/addons/gamification/data/gamification_karma_rank_demo.xml b/addons/gamification/data/gamification_karma_rank_demo.xml index c34f93b486e..45b57ae34f3 100644 --- a/addons/gamification/data/gamification_karma_rank_demo.xml +++ b/addons/gamification/data/gamification_karma_rank_demo.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<odoo><data> +<odoo><data noupdate="1"> <!-- Set demo karma for test tour as demo user--> <record id="base.user_demo" model="res.users"> <field name="karma">20</field> @@ -12,7 +12,11 @@ <record id="rank_student" model="gamification.karma.rank"> <field name="name">Student</field> <field name="description" type="html"><p>You begin to understand things ! Keep going!</p></field> - <field name="description_reach_next" type="html"><p>Keep going !</p></field> + <field name="description_motivational" type="html"> +<div class="media align-items-center"> + <div class="media-body">Reach the next rank and gain a very nice mug !</div> + <img class="ml-3 img img-fluid" style="max-height: 72px;" src="/gamification/static/img/rank_misc_mug.jpg"/> +</div></field> <field name="karma_min">100</field> <field name="image" type="base64" file="gamification/static/img/rank_student_badge.svg"/> </record> @@ -20,7 +24,11 @@ <record id="rank_bachelor" model="gamification.karma.rank"> <field name="name">Bachelor</field> <field name="description" type="html"><p>Hey ! You're not so dumb after all !</p></field> - <field name="description_reach_next" type="html"><p>Keep going !</p></field> + <field name="description_motivational" type="html"> +<div class="media align-items-center"> + <div class="media-body">Reach the next rank and gain a very magic wand !</div> + <img class="ml-3 img img-fluid" style="max-height: 72px;" src="/gamification/static/img/rank_misc_wand.jpg"/> +</div></field> <field name="karma_min">500</field> <field name="image" type="base64" file="gamification/static/img/rank_bachelor_badge.svg"/> </record> @@ -28,7 +36,11 @@ <record id="rank_master" model="gamification.karma.rank"> <field name="name">Master</field> <field name="description" type="html"><p>You're good ! Really Good !</p></field> - <field name="description_reach_next" type="html"><p>Keep going !</p></field> + <field name="description_motivational" type="html"> +<div class="media align-items-center"> + <div class="media-body">Reach the next rank and gain a very nice hat !</div> + <img class="ml-3 img img-fluid" style="max-height: 72px;" src="/gamification/static/img/rank_misc_hat.jpg"/> +</div></field> <field name="karma_min">2000</field> <field name="image" type="base64" file="gamification/static/img/rank_master_badge.svg"/> </record> @@ -36,7 +48,11 @@ <record id="rank_doctor" model="gamification.karma.rank"> <field name="name">Doctor</field> <field name="description" type="html"><p>Ok, RESPECT !</p></field> - <field name="description_reach_next" type="html"><p>Keep going !</p></field> + <field name="description_motivational" type="html"> +<div class="media align-items-center"> + <div class="media-body">Reach the next rank and gain a week-end with a unicorn !</div> + <img class="ml-3 img img-fluid" style="max-height: 72px;" src="/gamification/static/img/rank_misc_unicorn.jpg"/> +</div></field> <field name="karma_min">10000</field> <field name="image" type="base64" file="gamification/static/img/rank_doctor_badge.svg"/> </record> |
