[FIX] Very expensive copy paste type
bzr revid: jke@openerp.com-20140311160834-vm0ixawo7alh3w5p
This commit is contained in:
parent
f75f09db92
commit
9dc0859c77
|
@ -1327,7 +1327,7 @@ class calendar_event(osv.Model):
|
|||
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=0, limit=0, order=None, context=context, count=False)
|
||||
res = super(calendar_event, self).search(cr, uid, new_args, offset=offset, limit=limit, order=order, context=context, count=count)
|
||||
res = self.get_recurrent_ids(cr, uid, res, args, order=order, context=context)
|
||||
if count:
|
||||
return len(res)
|
||||
|
|
Loading…
Reference in New Issue