From 27dab11ccda0b1e949b3bbc8cec77a5b2a510b0a Mon Sep 17 00:00:00 2001 From: Gery Debongnie Date: Wed, 9 Apr 2014 12:51:27 +0200 Subject: [PATCH] [FIX] fix to the previous fix: it should correctly calls the readgroup methods now (addons calendar, idea) bzr revid: ged@openerp.com-20140409105127-ctn9bl6h5gd62x0x --- addons/calendar/calendar.py | 2 +- addons/idea/models/idea.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/calendar/calendar.py b/addons/calendar/calendar.py index ecdfdec669f..add0030d76c 100644 --- a/addons/calendar/calendar.py +++ b/addons/calendar/calendar.py @@ -1484,7 +1484,7 @@ class calendar_event(osv.Model): raise osv.except_osv(_('Warning!'), _('Group by date is not supported, use the calendar view instead.')) virtual_id = context.get('virtual_id', True) context.update({'virtual_id': False}) - res = super(calendar_event, self).read_group(cr, uid, domain, fields, groupby, offset=offset, limit=limit, context=context, orderby=orderby, lazy) + res = super(calendar_event, self).read_group(cr, uid, domain, fields, groupby, offset=offset, limit=limit, context=context, orderby=orderby, lazy=lazy) for result in res: #remove the count, since the value is not consistent with the result of the search when expand the group for groupname in groupby: diff --git a/addons/idea/models/idea.py b/addons/idea/models/idea.py index ba393324fec..37fbbe82e1c 100644 --- a/addons/idea/models/idea.py +++ b/addons/idea/models/idea.py @@ -114,7 +114,7 @@ class IdeaIdea(osv.Model): result.append(res[0]) return result else: - return super(IdeaIdea, self).read_group(cr, uid, domain, fields, groupby, offset=offset, limit=limit, context=context, orderby=orderby) + return super(IdeaIdea, self).read_group(cr, uid, domain, fields, groupby, offset=offset, limit=limit, context=context, orderby=orderby, lazy=lazy) #------------------------------------------------------ # Workflow / Actions