diff options
| author | Thibault Delavallée <tde@odoo.com> | 2019-06-18 14:08:02 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-06-28 13:45:33 +0000 |
| commit | cd039b64d46b01a293ad496bd07ba28fd8e53d95 (patch) | |
| tree | 218bbfa871e1d1abb3621b04d5febeac88e4e1dc /addons/gamification/data/gamification_karma_rank_demo.xml | |
| parent | d5f8e39923de39c3a5b7daa39ea29f71178fe56f (diff) | |
[FIX] gamification, website_{profile, slides}: correctly display next rank
This fix correctly displayed motivational of next rank to achieve depending
on current karma. Indeed description_motivational field is not the
motivational to reach next rank but to reach the current rank, taken from
previous rank point of view. That way a given rank is configured by modifying
only 1 data.
When not having any karma points (newly created user) the next rank is computed
as being the first available rank. Motivational phrases and badges are updated
accordingly. This commit partially reverts 489c8623e2c4869ce1ed8be3d186e36cc1c47456.
Result
* new user with no karma: next rank is the first rank;
* user with karma and next rank: as currently;
* user being at final rank: next rank is just current rank with a 100%
circle;
Linked to task 2005840
Related to PR #34220
Diffstat (limited to 'addons/gamification/data/gamification_karma_rank_demo.xml')
| -rw-r--r-- | addons/gamification/data/gamification_karma_rank_demo.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/gamification/data/gamification_karma_rank_demo.xml b/addons/gamification/data/gamification_karma_rank_demo.xml index 6250ee227f6..839e8750047 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 noupdate="0"> +<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> @@ -39,7 +39,7 @@ <record id="rank_doctor" model="gamification.karma.rank"> <field name="description_motivational" type="html"> <div class="media align-items-center"> - <div class="media-body">You have reached the last rank. Congratulations!</div> + <div class="media-body">Reach the next rank and gain a very nice unicorn !</div> <img class="ml-3 img img-fluid" style="max-height: 72px;" src="/gamification/static/img/rank_misc_unicorn.png"/> </div> </field> |
