[FIX] orm: fixed bug in read_group
bzr revid: hmo@tinyerp.com-20100215053400-b3ni5ahmxefkau0p
This commit is contained in:
+2
-2
@@ -1832,8 +1832,8 @@ class orm(orm_template):
|
||||
float_int_fields = filter(lambda x: fget[x]['type'] in ('float','integer'), fields)
|
||||
sum = {}
|
||||
|
||||
group_by = groupby
|
||||
if fget[groupby]['type'] in ('date','datetime'):
|
||||
group_by = groupby
|
||||
if fget.get(groupby,False) and fget[groupby]['type'] in ('date','datetime'):
|
||||
flist = "to_char(%s,'yyyy-mm') as %s "%(groupby,groupby)
|
||||
groupby = "to_char(%s,'yyyy-mm')"%(groupby)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user