[IMP]:group_by to support no_leaf in multi level group by

bzr revid: nch@tinyerp.com-20100420055805-ghxgs957976zng2a
This commit is contained in:
nch@tinyerp.com 2010-04-20 11:28:05 +05:30
parent be085ed753
commit f78f7158a8
1 changed files with 1 additions and 1 deletions

View File

@ -2026,7 +2026,7 @@ class orm(orm_template):
if groupby:
d['__domain'] = [(groupby,'=',alldata[d['id']][groupby] or False)] + domain
if not isinstance(groupby_list,(str, unicode)):
if not context.get('group_by_no_leaf', False):
if groupby or not context.get('group_by_no_leaf', False):
d['__context'] = {'group_by':groupby_list[1:]}
if groupby and fget.has_key(groupby):
if d[groupby] and fget[groupby]['type'] in ('date','datetime'):