From ec7fc1cd7de4dac4cede8c4d82b9c2258135a12a Mon Sep 17 00:00:00 2001 From: Thibault Francois Date: Wed, 19 Jan 2011 05:20:17 +0100 Subject: [PATCH] [FIX] Fix all the bug form builtbot bzr revid: tfr@openerp.com-20110119042017-c97dlh9mft7n19cd --- addons/base_calendar/base_calendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/base_calendar/base_calendar.py b/addons/base_calendar/base_calendar.py index 2b319989809..5bc12c69671 100644 --- a/addons/base_calendar/base_calendar.py +++ b/addons/base_calendar/base_calendar.py @@ -1255,7 +1255,7 @@ e.g.: Every other month on the last Sunday of the month for 10 occurrences:\ ids = select result = [] recur_dict = [] - if ids: + if ids and (base_start_date or base_until_date): cr.execute("select m.id, m.rrule, m.date, m.date_deadline, m.duration, \ m.exdate, m.exrule, m.recurrent_id, m.recurrent_uid from " + self._table + \ " m where m.id = ANY(%s)", (ids,) )