From f78f7158a8cf2c3fcb49966f873bf4decfcf816f Mon Sep 17 00:00:00 2001 From: "nch@tinyerp.com" <> Date: Tue, 20 Apr 2010 11:28:05 +0530 Subject: [PATCH] [IMP]:group_by to support no_leaf in multi level group by bzr revid: nch@tinyerp.com-20100420055805-ghxgs957976zng2a --- bin/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 8fd1810455c..bf1f3f92da1 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -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'):