[FIX]: base_calendar: Fixed wrong dates problems in recurrence
bzr revid: rpa@tinyerp.com-20100430131151-pcerhgclxx1nvq3v
This commit is contained in:
@@ -1233,9 +1233,10 @@ e.g.: Every other month on the last Sunday of the month for 10 occurrences:\
|
||||
until_date = base_until_date and datetime.strptime(base_until_date[:10], "%Y-%m-%d") or False
|
||||
if count > limit:
|
||||
break
|
||||
event_date = datetime.strptime(data['date'], "%Y-%m-%d %H:%M:%S")
|
||||
if start_date and start_date <= event_date:
|
||||
start_date = event_date
|
||||
# To check: If the start date is replace by event date .. the event date will be changed by that of calendar code
|
||||
# if start_date and start_date <= event_date:
|
||||
# start_date = event_date
|
||||
start_date = event_date
|
||||
if not data['rrule']:
|
||||
if start_date and (event_date < start_date):
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user