odoo/addons/gamification
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
..
data [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 2014-05-09 15:18:39 +02:00
i18n [ADD] gamification: i18n translation files 2014-02-13 16:06:13 +01:00
models [FIX] gamification: prohibitive record rule processing with many users/goals 2014-08-13 13:47:50 +02:00
security [FIX] gamification: correct name of ir.rule fixing bad copy-paste 2014-05-12 10:50:41 +02:00
static [FIX] gamification: do not overwrite the mail widget as it would be called too often, the wall is enough 2014-04-25 15:07:40 +02:00
tests [FIX] gamification: remove old calls to action_close 2013-12-24 16:29:02 +01:00
views [FIX] gamification: why is there a button here ? do you need a button ? I don't think so... 2014-07-24 08:50:48 +02:00
wizard [REF] gamification: rename user_from_id -> sender_id, move constants 2013-12-23 17:01:43 +01:00
__init__.py [FIX] gamification: remove import data, add trackvisibility on challenge instead of sending message 2013-12-24 15:54:49 +01:00
__openerp__.py [REF] gamification: python tests and other improvements 2013-12-18 12:12:43 +01:00