[FIX] gamification: do not group on agregated field for sum
authorMartin Trigaux <mat@openerp.com>
Tue, 3 Jun 2014 08:48:26 +0000 (10:48 +0200)
committerMartin Trigaux <mat@openerp.com>
Tue, 3 Jun 2014 08:48:26 +0000 (10:48 +0200)
commitaa1165441c880f248cb4c7df23e5590a7e8a43ca
tree95eaa17182e806a07fe3c866e2fef120d078cc5c
parent3cb551bf50618d3b481789c430359ba705b42db0
[FIX] gamification: do not group on agregated field for sum

The read_group behaviour has changed and read_group no longer sum on the field you are grouping.
Instead agregate on the field we want to sum and use no groupby.
For future version, grouping on a user such as what is done in batch mode is a better way to process.
addons/gamification/models/goal.py