[FIX]:no_leaf in groupby was not taking main domain in to consideration

bzr revid: nch@tinyerp.com-20100420130855-mopv1kv1892i7xnv
This commit is contained in:
nch@tinyerp.com 2010-04-20 18:38:55 +05:30
parent 3af6db6180
commit 2a072834f5
1 changed files with 0 additions and 2 deletions

View File

@ -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 ')