bzr revid: fp@tinyerp.com-20120906162528-553xac78vjg9h850
This commit is contained in:
Fabien Pinckaers 2012-09-06 18:25:28 +02:00
parent c07aa9b5da
commit 2c63d43c36
1 changed files with 2 additions and 1 deletions

View File

@ -2498,9 +2498,10 @@ class BaseModel(object):
append_left(read_group_result.pop(0))
else:
append_right(all_groups.pop(0))
if folded:
for r in result:
r['__fold'] = folded.get(r[groupby], False)
r['__fold'] = folded.get(r[groupby] and r[groupby][0], False)
return result
def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None, orderby=False):