[IMP] simplifies the readgroup code to select order by (orm.py)

bzr revid: ged@openerp.com-20140408122417-y75wp0plyloiamuy
This commit is contained in:
Gery Debongnie 2014-04-08 14:24:17 +02:00
parent 5d31c979a1
commit e143250b7a
1 changed files with 1 additions and 1 deletions

View File

@ -2373,7 +2373,7 @@ class BaseModel(object):
annotated_groupbys = [self._read_group_process_groupby(gb, query, context)
for gb in groupby_list]
groupby_fields = [g['field'] for g in annotated_groupbys]
order = orderby or ','.join([g['groupby'] for g in annotated_groupbys])
order = orderby or ','.join([g for g in groupby_list])
groupby_dict = {gb['groupby']: gb for gb in annotated_groupbys}
self._apply_ir_rules(cr, uid, query, 'read', context=context)