odoo/addons/gamification/models
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
..
__init__.py [REF] gamification: pretty much changing half of the code to make tde happy... 2013-12-17 17:15:41 +01:00
badge.py [FIX] gamification: goal.condition -> goal.definition_condition, user_ids not in vals -> not vals.get(user_ids) 2013-12-23 17:12:29 +01:00
challenge.py [FIX] GAMIFICATION: Fixed the Attribute Error 2014-06-17 15:12:15 +02:00
goal.py [FIX] gamification: prohibitive record rule processing with many users/goals 2014-08-13 13:47:50 +02:00
res_users.py [FIX] gamification: when auto-subscribing users to challenges, do it as superuser 2014-02-18 15:04:03 +01:00