summaryrefslogtreecommitdiff
path: root/addons/gamification/models/res_users.py
AgeCommit message (Collapse)Author
2019-03-15[IMP] website_profile, gamification, : add search bar in all users pageDavid Beguin
This commit adds the search bar in 'All users' page in order to filter on name or company name. To be able to keep the position, a non stored computed field has been added on res_users to get the position depending on the user's karma. The podium (top 3 users) is now displayed only if there is no search applied and if the page = 1 because it has no sens anymore in other cases. Special thanks to @jem-odoo who helped me finding smart solution for position computing. Task ID : 1943788 PR #31321
2019-03-06[FIX] gamification, website_profile : re-fix division by zero if user has no ↵David Beguin
karma If a new user try to access the elearning platform or his porfile, if he has no karma, has it is the case for new users, he won't get any rank. So that the next rank karma minus current rank karma equals zero. To avoid this, next_rank will always be first one existing if the user has no karma. Also, the current rank will not be displayed if the user has no karma. finally, next rank will not be displayed if the user reached the last existing rank. Task ID : 1941250 PR #31512
2019-02-14[IMP] gamification, website_forum : apply various improvementsDavid Beguin
- add menu to configure ranks in gamification tools because was missing - move admin karma data in gamification : karma linked to gamification and not forum anymore - fix rank computation : next_rank_id could never been recomputed correctly if rank are created in a karma ascending order. Task ID : 1922159 PR #30988
2019-02-12[FIX] gamification: fix rank computationDavid Beguin
2019-02-08[IMP] gamification : rename rank.karma_required into karma_min for grep ↵David Beguin
convenience Rename rank.karma_required into karma_min to avoid confusion with karma_required from website_forum Linked to Task ID : 1922159 Closes PR #30965
2019-02-07[IMP] gamification : add ranks based on karmaDavid Beguin
To encourage forum and slides users to be more active ranks are now added. They are directly linked to karma. The more the user has karma the more his rank will be high. The default rank is Newbie, with 1 point of karma. Users with 0 karma are considered as inactive on forum or slides. When a user reach a new rank a mail is sent to him to congratulate him with his new rank. To add a button in the mail template to allow users to go directly on a website section (like forum or slides) simply override get_gamification_redirection_data to add the target url. Partial commit linked to eLearning project. Main specifications related to gamification and user profile can be found on task 1922159 (PR #30514). Main specifications related to eLearning can be found on task 1902304 (PR #29876).
2019-02-07[REF] gamification, website_forum: move karma, badge and badge level to ↵David Beguin
gamification Purpose of this commit is to prepare addition of gamification in slides / eLearning platform. In order to be able to use karma and the badges in other modules we move those models in gamification. Partial commit linked to eLearning project. Main specifications related to gamification and user profile can be found on task 1922159 (PR #30514). Main specifications related to eLearning can be found on task 1902304 (PR #29876).
2016-08-05[REM] gamification: res_users extensionsXavier Morel
Apparently leftover from when features got removed from the client.
2015-06-02[LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate textOlivier Dony
- Preserved explicit 3rd-party copyright notices - Explicit boilerplate should not be necessary - copyright law applies automatically in all countries thanks to Berne Convention + WTO rules, and a reference to the applicable license is clear enough.
2014-04-18[IMP] gamification: performance improvement in generation methodMartin Trigaux
bzr revid: mat@openerp.com-20140418150618-9g179rleuru44xrt
2014-04-16[FIX] gamification: convert autojoin_group_id to a domain representing the ↵Martin Trigaux
list of users bzr revid: mat@openerp.com-20140416151026-lmvyo8k0wo4hw9gn
2014-04-15Allow overwrite of the serialising method to exclude some categories in the ↵Martin Trigaux
challenge search bzr revid: mat@openerp.com-20140415134809-uconkvnp0z32jxjs
2014-02-18[FIX] gamification: when auto-subscribing users to challenges, do it as ↵Martin Trigaux
superuser bzr revid: mat@openerp.com-20140218140403-eamxtm6dvwj3g5d3
2014-02-07[FIX] gamification: when serialising data, skip lines and challenges with no ↵Martin Trigaux
goals bzr revid: mat@openerp.com-20140207093643-vr1on5oxqtzkalj9
2014-02-07[FIX] gamification: automatically generates goals for users when adding them ↵Martin Trigaux
to a new challenge bzr revid: mat@openerp.com-20140207092411-yju3pif1ibipcff8
2013-12-20[REF] gamification: cleaning methods and reportsMartin Trigaux
bzr revid: mat@openerp.com-20131220144521-wyu1gx8bcitu6nk4
2013-12-18[REF] gamification: python tests and other improvementsMartin Trigaux
bzr revid: mat@openerp.com-20131218111243-npnauv6mxhb4nttg
2013-12-18[REF] gamification: mode to adequate foldersMartin Trigaux
bzr revid: mat@openerp.com-20131218085907-6501sfdif2rk4a0b
2013-12-17[REF] gamificationMartin Trigaux
bzr revid: mat@openerp.com-20131217170232-e0zruxzl1wlycaji
2013-12-17[REF] gamificationMartin Trigaux
bzr revid: mat@openerp.com-20131217164619-ewgj8cclza3u44pp
2013-12-17[REF] gamification: pretty much changing half of the code to make tde happy...Martin Trigaux
bzr revid: mat@openerp.com-20131217161541-oxsgy7gmko2x6qui