[IMP]:group_by to support no_leaf in multi level group by
bzr revid: nch@tinyerp.com-20100420055805-ghxgs957976zng2a
This commit is contained in:
parent
be085ed753
commit
f78f7158a8
|
@ -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'):
|
||||
|
|
Loading…
Reference in New Issue