summaryrefslogtreecommitdiff
path: root/addons/gamification
AgeCommit message (Collapse)Author
2019-04-23[FIX][IMP] various: perform small cleanup of mail templatesThibault Delavallée
Notably * remove cdata and fix html code when necessary; * re-order fields declaration to have globally the same order in various template definition; * remove unnecessary reply-to, make user signature and auto delete fields explicit when necessary; * improve some name to ease template ordering and understanding in the template list view; Related to task 1972615 Linked to PR #32872 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-04-23[FIX][IMP] various: improve recipients computation in mail templatesThibault Delavallée
Purpose: use more email_formatted when possible, clean and simplify email_from, email_to and partner_to computation. Next step is to try to extract some common patterns in tools or methods in order to simplify template creation and customization. Related to task 1972615 Linked to PR #32872
2019-03-20[I18N] export saas-12.2 source termsMartin Trigaux
closes odoo/odoo#31985 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
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-11[MERGE] forward port branch saas-12.1 up to 2b3296bbf8bChristophe Simonis
2019-03-08[MERGE] forward port branch 12.0 up to c023d0784f2Christophe Simonis
2019-03-08[MERGE] forward port branch saas-11.3 up to ecd8c023b7cChristophe Simonis
2019-03-08[MERGE] forward port branch 11.0 up to e5f93b83c68Christophe Simonis
2019-03-08[MERGE] forward port branch saas-15 up to 21c84f15322Christophe Simonis
2019-03-08[MERGE] forward port branch saas-14 up to b47749effd8Christophe Simonis
2019-03-08[MERGE] forward port branch 10.0 up to 88de9311416Christophe Simonis
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: badge auth for badge no errorSuganthi Karunanithi
To avoid exception: TypeError: Mixing apples and oranges: gamification.badge() - gamification.badge.user(1,) when rule_auth of a badge is set to `having`. opw-1945440 closes #31436 closes #31595 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
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-03-03[I18N] Update translation terms from TransifexOdoo Translation Bot
2019-02-28[I18N] *: remove es_DO translationsgustavovalverde
Include commit 572d628 again, as it was lost with a forward port. closes odoo/odoo#31479
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-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-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).
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).
2019-01-16[I18N] export saas-12.1 source termsMartin Trigaux
To reflect fixes at ec2263080abba and cd4080839f501a closes odoo/odoo#30253
2019-01-09[MERGE] forward port branch 12.0 up to 3e4138deaa2Christophe Simonis
closes odoo/odoo#30045
2019-01-06[I18N] Update translation terms from TransifexOdoo Translation Bot
2018-12-24[I18N] export saas-12.1 source termsMartin Trigaux
closes odoo/odoo#29730
2018-12-31[FIX] gamification: add space in generated queryRomainLibert
The generated query in _generate_goals_from_challenge lacked spaces between the date clause, which caused a traceback. The traceback only appears since v12 and above, because the dates are now casted as dates (::date) in SQL, which has to be followed by a space. Before that it was "fine" as SQL does allow you to write g.start_date = '10-10-2017'and g.end_date = '11-11-2017' Closes #28773 closes odoo/odoo#29836
2018-12-30[I18N] Update translation terms from TransifexOdoo Translation Bot
2018-12-12[MERGE] forward port branch 12.0 up to 047e2b28de4Christophe Simonis
2018-12-24[I18N] Update translation terms from TransifexOdoo Translation Bot
2018-12-23[I18N] Update translation terms from TransifexOdoo Translation Bot
2018-12-09[I18N] Update translation terms from TransifexOdoo Translation Bot
2018-12-19[I18N] export 12.0 source termsMartin Trigaux
Update to reflect the recent code changes closes odoo/odoo#29636
2018-12-16[I18N] Update translation terms from TransifexOdoo Translation Bot
2018-12-02[I18N] Update translation terms from TransifexOdoo Translation Bot
2018-12-05[MERGE] forward port branch 12.0 up to 053bb45706fChristophe Simonis
2018-11-29[MERGE] forward port branch 12.0 up to 82a1e1dcc33Christophe Simonis
2018-11-29[REF] *: replace deprecated pycompat helpers for builtinsAdrian Torres
This commit replaces calls to pycompat helpers that were intended for python 2 <-> python 3 interoperability for python 3 builtins, as python 2 is no longer officially supported by Odoo. This includes: * calls to imap/izip/ifilter replaced by map/zip/filter * uses of text_type replaced by str * uses of unichr replaced by chr * calls to implements_to_string, implements_iterator removed * string_types and integer_types replaced by str, int respectively * calls to to_native replaced by calls to to_text This is done in preparation to the removal of these deprecated helpers in the following commit.
2018-11-21[I18N] Update translation terms from TransifexOdoo Translation Bot
2018-11-18[I18N] Update translation terms from TransifexOdoo Translation Bot
2019-01-28[MERGE] forward port branch saas-12.1 up to d3b8422c9c4Christophe Simonis
closes odoo/odoo#30614
2019-01-09[MERGE] forward port branch saas-12.1 up to 8aa8548d8abChristophe Simonis
2019-01-08[IMP] gamification: improve view layout and add names for easier xpathsYenthe666
closes odoo/odoo#29948
2019-01-04[REF] various: update tracking parametersThibault Delavallée
Purpose is to clean the use of tracking parameters on fields. Parameters are merged and is now tracking=<int> or tracking=True. This commit is linked to task ID 1903814 and PR #28430.
2018-12-07[CHG] *: make binary fields default to attachment=TrueXavier Morel
Check that it makes custom binary fields into attachment as that's the main reason for the change: when users create binary fields via Studio, they're necessarily db-stored (as the interface doesn't allow altering the attachment attribute and it's unclear how we'd handle users switching it on/off every time), which significantly bloats their database (and burns storage & backup space), especially as the primary use case for binary fields is adding images and documents to records. * check that binary fields are properly created as attachment=True * add attachment=False on fields where that seems relevant (most but not all of the fields previously using the default) * remove occurrences of attachment=True closes odoo/odoo#29308
2019-03-03[I18N] Update translation terms from TransifexOdoo Translation Bot