summaryrefslogtreecommitdiff
path: root/addons/gamification/__manifest__.py
diff options
context:
space:
mode:
authorPatrick Hoste <pko@odoo.com>2019-06-27 07:54:04 +0000
committerThibault Delavallée <tde@odoo.com>2019-11-05 15:08:34 +0000
commitbfbc7c6a184b2b507b1bf4ad778430bc2f3a0e7f (patch)
tree76cc91bd7b3b2011c7930e084ed77cc12dcac980 /addons/gamification/__manifest__.py
parentc27ba2af1c640d91c6d7605412228687cc99cbd0 (diff)
[IMP] gamification: track karma change on users
PURPOSE Allow karma gain tracking enabling notably display of top users based on weekly / monthly gain in website profile. SPECIFCIATIONS Each time a user gains karma a record is created in the gamification karma tracking model. Scheduled activity runs to consolidate the records into monthly gain records to avoid having crowdy table and unnecessary noise in karma gain. This model is made private and only accessible through some dedicated compute methods / controllers used in website profile. In website profile module buttons are added to see users ranking based on their total karma (like before) but also by last week and last month gains (using the newly introduced tracking model). LINKS Task ID 2003505 PR #34594
Diffstat (limited to 'addons/gamification/__manifest__.py')
-rw-r--r--addons/gamification/__manifest__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/gamification/__manifest__.py b/addons/gamification/__manifest__.py
index 0270a25a56b..314dcf070a2 100644
--- a/addons/gamification/__manifest__.py
+++ b/addons/gamification/__manifest__.py
@@ -33,9 +33,11 @@ Both goals and badges are flexibles and can be adapted to a large range of modul
'data/gamification_karma_rank_data.xml',
'views/gamification.xml',
'views/gamification_karma_rank_views.xml',
+ 'views/gamification_karma_tracking_views.xml',
'views/mail_templates.xml'
],
'demo': [
- 'data/gamification_karma_rank_demo.xml'
+ 'data/gamification_karma_rank_demo.xml',
+ 'data/gamification_karma_tracking_demo.xml',
],
}