Denis Ledoux
f305b9e95b
[FIX] gamification: on delete badge user, cascade
...
Otherwise, this is no more possible to delete users having badges
2014-10-07 10:24:57 +02:00
Denis Ledoux
56f678c8e9
[FIX] gamification: on delete goal user, cascade
...
Otherwise, this is no more possible to delete users with gamification goals
2014-10-07 09:57:35 +02:00
Olivier Dony
7aa0376f3e
[FIX] gamification: prohibitive record rule processing with many users/goals
...
Due to the multi-company record rule on gamification.goal,
each access to the Goals menu and each opening of the
Messaging menu (thus calling get_serialised_gamification_summary())
is extremely slow (with several thousands goals/users).
Adding auto_join to the user_id FK on goals makes it much
faster. However it causes crashes when reading the table
because the _order of gamification.goal uses `create_date`,
which becomes ambiguous after the auto_join with res_users.
Solving this can be done by re-implementing _read_flat()
in the ORM using the internal Query object, as in search(),
which takes care of fully-qualifying all column names.
Until this is fixed, a simple workaround is to use
start_date in the _order instead of collision-prone `create_date`.
2014-08-13 13:47:50 +02:00
Paramjit Singh Sahota
9bb0abd641
[FIX] GAMIFICATION: Fixed the Attribute Error
...
' 'str' object has no attribute 'strftime' '
2014-06-17 15:12:15 +02:00
Martin Trigaux
387093a34a
gamification: when changing the domain on a goal definition give a simple check to avoid getting a traceback when the challenge is reloaded
2014-06-10 12:03:32 +02:00
Martin Trigaux
3ff7b48a81
[FIX] gamification: make sure than a cron running more than once a day will not report the progress more than once
2014-05-14 10:59:20 +02:00
Martin Trigaux
3691ee0ca7
[FIX] gamification: avoid challenge to be initialised at the target limit (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-05-09 15:18:39 +02:00
Martin Trigaux
f73907587b
[FIX] gamification: do not set a start_date by default as the cron starts past challenges (making data challenge to start) and avoid useless write
...
bzr revid: mat@openerp.com-20140424110341-pnu79q44m7gzl8t0
2014-04-24 13:03:41 +02:00
Martin Trigaux
067f21ce5a
[FIX] gamification: set data in noupdate blocks to allow the user to customise it without loosing changes after update
...
bzr revid: mat@openerp.com-20140418120846-h8yo4ljult88f1h3
2014-04-18 14:08:46 +02:00
Martin Trigaux
cce60acc15
[FIX] gamification: when auto-subscribing users to challenges, do it as superuser
...
bzr revid: mat@openerp.com-20140218140403-eamxtm6dvwj3g5d3
2014-02-18 15:04:03 +01:00
Martin Trigaux
a90962e56d
[IMP] do not change the API and use superuser inside the method instead of in the call
...
bzr revid: mat@openerp.com-20140218135101-uozhw08pkr04q49z
2014-02-18 14:51:01 +01:00
Martin Trigaux
4a35b2e4b0
[FIX] gamification: skip challenges where every goal is achieved in serialisation
...
bzr revid: mat@openerp.com-20140218133138-9od9xqr3dv4hl95b
2014-02-18 14:31:38 +01:00
Martin Trigaux
b34108ac73
[FIX] gamification: accpet and discard challenges wizard should work as superuser, the user do no need gamification rights
...
bzr revid: mat@openerp.com-20140218130800-vth6elmbtrjmdouq
2014-02-18 14:08:00 +01:00
Martin Trigaux
838fe32a98
[IMP] gamification: related field challenge_id is always readonly, add helper
...
bzr revid: mat@openerp.com-20140207102705-cf5aue57qzo03rlq
2014-02-07 11:27:05 +01:00
Martin Trigaux
f988e74828
[FIX] gamification: when serialising data, skip lines and challenges with no goals
...
bzr revid: mat@openerp.com-20140207093643-vr1on5oxqtzkalj9
2014-02-07 10:36:43 +01:00
Martin Trigaux
691d305ed9
[FIX] gamification: automatically generates goals for users when adding them to a new challenge
...
bzr revid: mat@openerp.com-20140207092411-yju3pif1ibipcff8
2014-02-07 10:24:11 +01:00
Martin Trigaux
13bfaef3a3
[FIX] gamification: remove old calls to action_start
...
bzr revid: mat@openerp.com-20131224151543-oofn9wc2w3933gjy
2013-12-24 16:15:43 +01:00
Martin Trigaux
ff83d9eb4d
[FIX] gamification: remove import data, add trackvisibility on challenge instead of sending message
...
bzr revid: mat@openerp.com-20131224145449-93b3z97lagu12yri
2013-12-24 15:54:49 +01:00
Martin Trigaux
be7bc54edc
[REF] gamification: use m2o to email.template for report progress, create new field report_template_id, cleaning code
...
bzr revid: mat@openerp.com-20131224144514-lmbhw88nj7aa3r8i
2013-12-24 15:45:14 +01:00
Martin Trigaux
25117ca97f
[REF] gamification: use statusbar instead of action buttons
...
bzr revid: mat@openerp.com-20131224141140-vc0v5lpm0ivfl6i4
2013-12-24 15:11:40 +01:00
Martin Trigaux
aefd64e8cf
[REF] gamification: compute_code is now similar to ir.actions, cleanup code
...
bzr revid: mat@openerp.com-20131224130023-e4gc91ell38zdtfj
2013-12-24 14:00:23 +01:00
Martin Trigaux
6f5815f44d
[REF] gamification: cahnge some tde remarks, Long live Cthulhu
...
bzr revid: mat@openerp.com-20131223163214-f6yp2yxf5ja1wq22
2013-12-23 17:32:14 +01:00
Martin Trigaux
7c6a6b26f1
[FIX] gamification: goal.condition -> goal.definition_condition, user_ids not in vals -> not vals.get(user_ids)
...
bzr revid: mat@openerp.com-20131223161229-lpoevttkt6ezt2ia
2013-12-23 17:12:29 +01:00
Martin Trigaux
f4e42879d3
[REF] gamification: rename user_from_id -> sender_id, move constants
...
bzr revid: mat@openerp.com-20131223160143-8mgmwrgf6i3wo8ku
2013-12-23 17:01:43 +01:00
Martin Trigaux
c0eef31160
[REF] gamification: add user_from_id on badge, remove outdated-doc, remove useless message_post call
...
bzr revid: mat@openerp.com-20131223155404-h4in4ocr8jakq3ff
2013-12-23 16:54:04 +01:00
Martin Trigaux
aec8f50b20
[IMP] gamification: use constances
...
bzr revid: mat@openerp.com-20131220150557-xaomxnrdb4bxcex3
2013-12-20 16:05:57 +01:00
Martin Trigaux
f77aefc07a
[REF] gamification: cleaning methods and reports
...
bzr revid: mat@openerp.com-20131220144521-wyu1gx8bcitu6nk4
2013-12-20 15:45:21 +01:00
Martin Trigaux
90dfa5895d
[FIX] gamification: send badge on user, fix function field
...
bzr revid: mat@openerp.com-20131218140333-nipcc21z5snhac1c
2013-12-18 15:03:33 +01:00
Martin Trigaux
938a07a361
[FIX] gamification: check grant badges are now sistematic except for superuser (always possible)
...
bzr revid: mat@openerp.com-20131218130039-y5vp0wt48ejd3jrh
2013-12-18 14:00:39 +01:00
Martin Trigaux
553e85f369
[FIX] gamification: move manifest order and remove useless browse
...
bzr revid: mat@openerp.com-20131218121459-zlfumwysdx9qm7d9
2013-12-18 13:14:59 +01:00
Martin Trigaux
e7887b8b8f
[REF] gamification: python tests and other improvements
...
bzr revid: mat@openerp.com-20131218111243-npnauv6mxhb4nttg
2013-12-18 12:12:43 +01:00
Martin Trigaux
b63950e0dc
[REF] gamification: mode to adequate folders
...
bzr revid: mat@openerp.com-20131218085907-6501sfdif2rk4a0b
2013-12-18 09:59:07 +01:00
Martin Trigaux
4bc29b9ffa
[REF] gamification
...
bzr revid: mat@openerp.com-20131217170232-e0zruxzl1wlycaji
2013-12-17 18:02:32 +01:00
Martin Trigaux
c184adab44
[REF] gamification
...
bzr revid: mat@openerp.com-20131217164619-ewgj8cclza3u44pp
2013-12-17 17:46:19 +01:00
Martin Trigaux
122c15c48d
[REF] gamification: pretty much changing half of the code to make tde happy...
...
bzr revid: mat@openerp.com-20131217161541-oxsgy7gmko2x6qui
2013-12-17 17:15:41 +01:00