[FIX] fixes an incorrect call to read_group (the groupby argument should be a list of groupbys and should not be a list with an empty string (addon gamification)

bzr revid: ged@openerp.com-20140404114216-35wqvkegnpnn7mil
This commit is contained in:
Gery Debongnie
2014-04-04 13:42:16 +02:00
parent 9588999c7c
commit eb41be40bf
+1 -1
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