[FIX]:minor bug related to groupby
bzr revid: nch@tinyerp.com-20100203121835-abth6i33yy6lftxi
This commit is contained in:
+1
-1
@@ -1836,7 +1836,7 @@ class orm(orm_template):
|
||||
if fget.has_key(groupby):
|
||||
if fget[groupby]['type'] == 'many2one':
|
||||
d[groupby] = d[groupby] and d[groupby][1] or ''
|
||||
if fget[groupby]['type'] in ('date','datetime'):
|
||||
if d[groupby] and fget[groupby]['type'] in ('date','datetime'):
|
||||
today = datetime.date.today()
|
||||
if d[groupby][:10] == str(today):
|
||||
d[groupby] = 'Today'
|
||||
|
||||
Reference in New Issue
Block a user