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

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

Revert "erp5_calendar: Update stop_date, otherwise it can stay in the past and generate wrong duration (stop_date - start_date)"

This reverts commit 6af8eca1f4d7fbdd29cd001b1c5a7d4d03b51990.
parent 45b5b607
...@@ -73,7 +73,6 @@ class GroupCalendarAssignment(PresencePeriod): ...@@ -73,7 +73,6 @@ 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