-
- Downloads
[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 489c8623. 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
Showing
- addons/gamification/data/gamification_karma_rank_data.xml 10 additions, 9 deletionsaddons/gamification/data/gamification_karma_rank_data.xml
- addons/gamification/data/gamification_karma_rank_demo.xml 2 additions, 2 deletionsaddons/gamification/data/gamification_karma_rank_demo.xml
- addons/gamification/models/res_users.py 8 additions, 0 deletionsaddons/gamification/models/res_users.py
- addons/website_profile/views/website_profile.xml 17 additions, 14 deletionsaddons/website_profile/views/website_profile.xml
- addons/website_slides/views/website_slides_templates_homepage.xml 7 additions, 7 deletions...ebsite_slides/views/website_slides_templates_homepage.xml
Loading
Please register or sign in to comment