[MERGE] Sync with trunk, to have last fixes

bzr revid: tde@openerp.com-20140408151253-sabtrlt79uj31stw
This commit is contained in:
Thibault Delavallée 2014-04-08 17:12:53 +02:00
commit 759431c6d6
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ class gamification_goal(osv.Model):
if goal.definition_id.computation_mode == 'sum':
field_name = goal.definition_id.field_id.name
res = obj.read_group(cr, uid, domain, [field_name], [''], context=context)
res = obj.read_group(cr, uid, domain, [field_name], [field_name], context=context)
new_value = res and res[0][field_name] or 0.0
else: # computation mode = count