Commit 7f3ce425 authored by Gabriel Monnerat's avatar Gabriel Monnerat Committed by Jérome Perrin

erp5_calendar: Update stop_date, otherwise it can stay in the past and...

erp5_calendar: Update stop_date, otherwise it can stay in the past and generate wrong duration (stop_date - start_date)
parent da6a5cd8
...@@ -73,6 +73,7 @@ class GroupCalendarAssignment(PresencePeriod): ...@@ -73,6 +73,7 @@ class GroupCalendarAssignment(PresencePeriod):
period_list.append( period_list.append(
period.asContext( period.asContext(
start_date=max(period.getStartDate(start_date), start_date), start_date=max(period.getStartDate(start_date), start_date),
stop_date=max(period.getStopDate(stop_date), stop_date),
periodicity_stop_date=min( periodicity_stop_date=min(
period.getPeriodicityStopDate(stop_date), stop_date)) period.getPeriodicityStopDate(stop_date), stop_date))
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment