[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:
parent
444b18e494
commit
3cb551bf50
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue