[IMP]:readgroup

bzr revid: nch@tinyerp.com-20100119055305-h36ot0qc2lmeh1cg
This commit is contained in:
nch@tinyerp.com 2010-01-19 11:23:05 +05:30
parent b221e23259
commit fbe0cd494f
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ class orm_template(object):
def read_group(self, cr, user, ids, fields, groupby, context=None):
context = context or {}
if not ids:return
if fields[groupby]['type'] not in ('many2one,date,datetime'):
if fields[groupby]['type'] not in ('many2one','date','datetime'):
raise Exception(_("Type Not supported for Group By: %s :Only many2one,date and datetime are supported ") %(fields[groupby]['type'],))
qu1 = ' where id in (' + ','.join([str(id) for id in ids]) + ')'
qu2 = ''