[REF] removing debug code
authorAnael Closson <acl@openerp.com>
Mon, 17 Feb 2014 14:07:05 +0000 (15:07 +0100)
committerAnael Closson <acl@openerp.com>
Mon, 17 Feb 2014 14:07:05 +0000 (15:07 +0100)
bzr revid: acl@openerp.com-20140217140705-b2erer6w4mxba3l7

openerp/osv/orm.py

index 8ea3568..e9dfbbb 100644 (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