From fbe0cd494f95a20ca30a2274f15bf64825e1116f Mon Sep 17 00:00:00 2001 From: "nch@tinyerp.com" <> Date: Tue, 19 Jan 2010 11:23:05 +0530 Subject: [PATCH] [IMP]:readgroup bzr revid: nch@tinyerp.com-20100119055305-h36ot0qc2lmeh1cg --- bin/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 9f25796ed1d..30b03608bb6 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -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 = ''