[REF] removing debug code

bzr revid: acl@openerp.com-20140217140705-b2erer6w4mxba3l7
This commit is contained in:
Anael Closson 2014-02-17 15:07:05 +01:00
parent ac88131405
commit f4f6bc3d9a
1 changed files with 1 additions and 2 deletions

View File

@ -2718,8 +2718,7 @@ class BaseModel(object):
offset_str = offset and ' offset %d' % offset or ''
if len(groupby_list) < 2 and context.get('group_by_no_leaf'):
group_count = '_'
query = 'SELECT min(%s.id) AS id, count(%s.id) AS %s_count' % (self._table, self._table, group_count) + (flist and ',') + flist + ' FROM ' + from_clause + where_clause + gb + (ob and ',') + ob + orderby_clause + limit_str + offset_str
cr.execute(query , where_clause_params)
cr.execute('SELECT min(%s.id) AS id, count(%s.id) AS %s_count' % (self._table, self._table, group_count) + (flist and ',') + flist + ' FROM ' + from_clause + where_clause + gb + (ob and ',') + ob + orderby_clause + limit_str + offset_str, where_clause_params)
alldata = {}
groupby = group_by