From 2a072834f50bcf48381b9b6d8d5c5ceb57559195 Mon Sep 17 00:00:00 2001 From: "nch@tinyerp.com" <> Date: Tue, 20 Apr 2010 18:38:55 +0530 Subject: [PATCH] [FIX]:no_leaf in groupby was not taking main domain in to consideration bzr revid: nch@tinyerp.com-20100420130855-mopv1kv1892i7xnv --- bin/osv/orm.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 1b8e7a83a16..7cc9b6ed676 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -1996,8 +1996,6 @@ class orm(orm_template): if groupby and isinstance(groupby, list): groupby = groupby[0] tables, where_clause = self._inherits_join_calc(groupby,tables,where_clause) - else: - where_clause = '' if len(where_clause): where_clause = ' where '+string.join(where_clause, ' and ')