From 8a8f93a1011393d0a307cc824a45db4e23242811 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 11 Mar 2014 17:38:33 +0100 Subject: [PATCH] [REVERT] revert previous commit: this specific case was legit bzr revid: chs@openerp.com-20140311163833-evzfw1z6fl8m63in --- addons/calendar/calendar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/calendar/calendar.py b/addons/calendar/calendar.py index c6ffbf13597..784358dceed 100644 --- a/addons/calendar/calendar.py +++ b/addons/calendar/calendar.py @@ -1326,8 +1326,8 @@ class calendar_event(osv.Model): if not context.get('virtual_id', True): return super(calendar_event, self).search(cr, uid, new_args, offset=offset, limit=limit, order=order, context=context, count=count) - # offset, limit, order and count must be treated separately as we may need to deal with virtual ids - res = super(calendar_event, self).search(cr, uid, new_args, offset=offset, limit=limit, order=order, context=context, count=count) + # offset, limit, order and count must be treated separately as we may need to deal with virtual ids + res = super(calendar_event, self).search(cr, uid, new_args, offset=0, limit=0, order=None, context=context, count=False) res = self.get_recurrent_ids(cr, uid, res, args, order=order, context=context) if count: return len(res)