summaryrefslogtreecommitdiff
path: root/addons/gamification/data
AgeCommit message (Collapse)Author
2019-06-28[FIX] gamification, website_{profile, slides}: correctly display next rankThibault Delavallée
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
2019-06-20[FIX] gamification: restore broken images in non-demo dataqsm-odoo
For some strange reasons, the e-learning ranks are created in data but the demo data override their motivational message fields. Unfortunately, the demo data were ok but the normal data had broken images in them. closes odoo/odoo#34282 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-06-13[IMP] website_[profile,slides]: improve karma rank layoutAurélien Warnon
This commit improves the karma rank layout displayed on the courses home page and on the user profile. Task #2003222
2019-03-08[IMP] gamification : move rank demo data into dataDavid Beguin
In order to se the 'next rank card' and the user karma on user's profile page, not only the first rank is needed but also higher ranks. Otherwise everyone will be 'Newbie', even the admin. Moreover it is easier to update existing data for things like rank than having to figure out how it works. Task ID : 1941250 PR #31697
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-21[FIX] gamification: improve next rank iconsThibault Delavallée
Background of icons should be transparent. Commit linked to task ID 1941250 and PR #31317.
2019-02-15[REF] gamification: clean next rank motivational implementationThibault Delavallée
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)
2019-02-15[IMP] gamification, website_slides: add challenges in slides and improve ranksThibault Delavallée
Purpose of this commit is to add challenges related to slide / elearning module. 5 new challenges with their badges are added. Portal user partner is now also published to have bioutifoul demo data. Commit linked to eLearning tasks [1][2] Co-Authored-By: David Beguin <dbe@odoo.com> Co-Authored-By: Thibault Delavallee <tde@odoo.com> [1] new homepage task: ID 1936153 and PR #30770 [2] new user profile / gamification task: ID 1922159 and PR #30514 and #30988
2019-02-14[IMP] gamification,forum: remove deprecated alert when sending badgejem-odoo
Since 56645335b7bae0415242ec51193e493119a58879, when a user get a badge, an email is sent. The subtype is not used anymore, so the alert mecanism in forum to display a message to the user to show him his new badges can not work. This commit removes this dead code. Task-1922159
2019-02-12[MOV] gamification, website_forum : move karma data and demo in gamificationDavid Beguin
As gamification karma-based features can be used outside of forum let us move demo and data directly in gamification. It will be used notably for eLearning.
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).
2018-11-02[FIX] gamification: correct mail template on small challengesMartin Trigaux
A challenge with less than 3 participants was failing with a key error The challenge line has only one 'goal' result per participant As the template is set in a noupdate, even a module update does not fix the bug Generate fake goals that will be displayed in the top 3, e.g.: 1 Bob $100 42% 2 Alice $50 21% 3 0 0% closes odoo/odoo#28363
2018-10-03[ADD] *: replace hardcoded data URIs with helperPedro M. Baeza
- Add a method for generating an image data URI, and expose it in QWeb context - Fix reports, website templates or mail templates with data hardcoded data URIs, to use the helper (Python cases), or the existing kanban_image helper (for JS cases) This will gracefully handle SVG support in addition to classical image formats. Closes #26635
2018-08-06[IMP] base: improve kanban of modules, cards not clickable (top-right menu)Fabien Pinckaers
[NEW] base: show enterprise module, with an 'upgrade' button [IMP] *: some modules renaming, and improved copywriting of manifest [IMP] *: utm on links to odoo.com
2018-06-08[IMP] gamification: make email templates bioutifoulPratima Gupta
Purpose of this commit is to enhance quality of templates proposed by Odoo and make them use notification layout when send by emails. Those emails are cleaner and more up to date compared to other emails. Including * calls to message_post now use the light notification layout. It is given as parameter to the message_post process; * some cleaning in templates; This commit is related to task ID 51122 (and PR #24052).
2017-08-02[FIX] Gamification: email template (#18331)rar-odoo
* [FIX] Gamification: email template - realized that the pictures of users were not public by default, which means src with an url won't work if not connected to the database. This is fixed by embedding the pictures directly in the mail. * [FIX] Gamification: challenge template - fixed layout problems with what works in the renderer.
2017-07-17[FIX] gamification: email template for challenges (#18265)rar-odoo
* [IMP] Gamification: email template - new template for challenges for both personal and ranking mode.
2017-01-03[REF] ir_cron: make scheduled actions inherits from server actionsThibault Delavallée
The purpose of this commit is to handle code execution only in server action and delegate schedule management to ir_cron model. ir.cron model now inherits from ir.actions.server. Fields model, function and args are removed as well as the logic to handle them. There is no more code manipulation and evaluation in ir_cron, only a call to the run method of ir.actions.server. Cron form view use server action form view as primary view. This way automated actions use the same base form as server actions with cron details added. Thanks to @fpodoo for the original idea and preliminary work. Thanks to @jpr-odoo for first developments. Thanks to @jem-odoo for reviewing.
2017-01-03[IMP] web, *: add new Domain and Field selection widgetsqsm-odoo
* base_action_rule, gamification, mass_mailing 1) Create the independant DomainSelector widget - Allow to build a prefix char domain 2) Replace old FieldCharDomain with a new FieldDomain which uses the new DomainSelector widget 3) Create the independant ModelFieldSelector widget - Allow to build a valid field chain for a specific model (e.g 'partner_id.name' for a 'res.users') - Used by DomainSelector widget --- The DomainSelector widget uses a tree-like representation with user-friendly buttons (ALL/ANY/+/-/...). Any domain can be built, except those containing the "!" (not) operator or some operators like "like", "child_of" (@see DomainSelector). However, if the user enters these in the debug input, the widget can handle them. Note: these widgets had to do unusual stuff the widget API does not allow to handle efficiently right now but it will be adapted to the new widget/field API in a further update. Note2: the widgets also have possibility of other improvements like supporting m2o input instantiation in DomainLeaf, etc. --- This work is an adaptation of the original code made by @pga-odoo.
2016-12-30[IMP] gamification: improve email sent when granting a badgeThibault Delavallée
Give some details about the badge: its description, its image, who granted it, ... Otherwise it is quite complicated to understand the email content. Thanks to @mart-e who reviewed and tested.
2016-08-05[MIG] gamification: compute_code data and evaluationXavier Morel
2016-08-05[MIG] gamification: Migrate to new APIXavier Morel
Includes compatibility-change to website_forum: a selection(callable) converted to a Selection(list) since that can easily be extended in the new API.
2016-03-16[MERGE] forward port of branch saas-7 up to revision ↵qdp-odoo
71d16a369e01515aac988c62371d70549d3b5294
2016-03-11[MERGE] forward port of branch 9.0 up to 8e69043Denis Ledoux
2016-02-29[FIX] gamification: missing model in email templateDenis Ledoux
Therefore, the template could be seen from the Discuss module, when clicking on "Send Mail", but, when attempting to use it, it failed (as it was not applied on the right model). opw-670546
2016-01-05[FIX] gamification: force empty context for actionChristophe Simonis
The context has been removed by commit abf30a7f15eea2589d9f5c65668667efb0dff472 but need to be forced as empty for existing databases.
2015-11-20[REM] Get rid of the ugly 'default_groups_ref' context keyYannick Tivisse
Because it is useless now with the new behavior brought by the previous commit. All the necessary details are explained in this one.
2015-11-02[IMP] various: template updateJamin Shah
Templates have been updated to remove most of the styling and simplify them. Some workding has also be done.
2015-07-09[RENAME] mail, portal: updated actions and views xml idsThibault Delavallée
for channel-related stuff. mail.channel views as well as timeline views and actions have been renamed. Now the names follow the guidelines and will be used in the upcoming refactoring of mail and chat.
2015-07-09[RENAME] mail, website_mail, website_mail_group, various: mail.groupThibault Delavallée
model has been renamed to mail.channel to prepare the slack modeling. In future commits the mail.group model will be merged with the channel model from im_chat. The first move is to rename mail.group into mail.channel to have a model that will unite both features.
2015-01-21[FIX] gamification: missing data in commit 2acad60Martin Trigaux
damn you git add...
2015-01-21[FIX] gamification: translatable email notificationRavi Gohil
This requires a manual update/migration for existing template. opw 619786
2015-01-07[IMP] Mass mailings send in cronJulien De Coster
1. The merge of the "email_template" module into the "mail" module. 2. The send action of the mass mailing has been moved from the frontend to a cron, because it was too slow to send over 10,000 mails (the user's browser was blocked for 15 - 20 minutes). Mass mailings have now their own process in the kanban view. 3. Mails sent from the mail form are sent immediatly instead of from the mail queue (for instance, when you go to sales > customers > list view > select 2 -3 customers > More > Partner Mass Mailing). 4. Users have now the choice from which mailing list they want to unsubscribe when they click on the unsubscribe link at the bottom of the mail. 5. Mass mailings inherit from their campaign UTMs and mass mailing campaigns are linked to an UTM campaign. 6. Many little improvements
2014-05-14Forward-port of latest saas-3, up to revision 9455 (rev-id ↵Martin Trigaux
mat@openerp.com-20140514080416-m4t23y0rxx2ot7y6)
2014-05-09[FIX] gamification: avoid challenge to be initialised at the target limit ↵Martin Trigaux
(e.g. set your company data goal has a target of 0) and make sure we will compute the goal at least once bzr revid: mat@openerp.com-20140509131839-lm5zt696sif1krvx
2014-04-24[MERGE] forward port of branch saas-3 up to revid 9429 ↵Christophe Simonis
chs@openerp.com-20140424123538-rxk9got9k2on1ki1 bzr revid: chs@openerp.com-20140424131824-4ksluvhnegp7kplb bzr revid: chs@openerp.com-20140424134533-lhhcd32n3s0m9cqk
2014-04-18[IMP] gamification: use evaluated version of the domain.Martin Trigaux
Needs server fix to avoid sending evaluated data. bzr revid: mat@openerp.com-20140418161053-lc970koh96wfe200
2014-04-18[FIX] gamification: set data in noupdate blocks to allow the user to ↵Martin Trigaux
customise it without loosing changes after update bzr revid: mat@openerp.com-20140418120846-h8yo4ljult88f1h3
2014-04-17[FIX] gamification: this noupdate block should be in noupdate (no kidding)Martin Trigaux
bzr revid: mat@openerp.com-20140417125412-4w5wp0ubsendx7nr
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-11[IMP] gamification: messages posted on user when receiving a badgeThibault Delavallée
now have a subtype, to ease their search. bzr revid: tde@openerp.com-20140411175730-hq06b7qezurzymj6
2014-04-11[REF] gamification: add batch mode, improve some views, remove ↵Martin Trigaux
inprogess_update state (replaced with boolean 'to update') bzr revid: mat@openerp.com-20140411142257-zpaul4sq3t5j5r64
2014-01-09[IMP] Backport one feature from website: this feature allows to specify a fileStephane Wirtel
path on the field tag fetching the right file instead of using the base64 encoded file in the field. <field name="image" type="base64" file="base/static/img/main_partner-image.png" /> bzr revid: stw@openerp.com-20140109154550-a04qybctzaaqtrlr
2013-12-24[FIX] gamification: move template block before challenge declarationMartin Trigaux
bzr revid: mat@openerp.com-20131224150549-uafyr7lyva3u9k8n
2013-12-24[REF] gamification: use m2o to email.template for report progress, create ↵Martin Trigaux
new field report_template_id, cleaning code bzr revid: mat@openerp.com-20131224144514-lmbhw88nj7aa3r8i
2013-12-24[REF] gamification: compute_code is now similar to ir.actions, cleanup codeMartin Trigaux
bzr revid: mat@openerp.com-20131224130023-e4gc91ell38zdtfj
2013-12-23[REF] gamification: rename user_from_id -> sender_id, move constantsMartin Trigaux
bzr revid: mat@openerp.com-20131223160143-8mgmwrgf6i3wo8ku
2013-12-23[REF] gamification: add user_from_id on badge, remove outdated-doc, remove ↵Martin Trigaux
useless message_post call bzr revid: mat@openerp.com-20131223155404-h4in4ocr8jakq3ff
2013-12-20[REF] gamification: cleaning methods and reportsMartin Trigaux
bzr revid: mat@openerp.com-20131220144521-wyu1gx8bcitu6nk4