[FIX] read_group: do not change the return format of the read group in case of no groupby_fields and keep the same return format as with groupby fields (a list of dict)

This commit is contained in:
Martin Trigaux 2014-06-03 10:20:55 +02:00
parent 444b18e494
commit 3cb551bf50
1 changed files with 1 additions and 1 deletions

View File

@ -2459,7 +2459,7 @@ class BaseModel(object):
fetched_data = cr.dictfetchall()
if not groupby_fields:
return {r.pop('id'): r for r in fetched_data}
return fetched_data
many2onefields = [gb['field'] for gb in annotated_groupbys if gb['type'] == 'many2one']
if many2onefields: