Commit ac96b631 authored by Jérome Perrin's avatar Jérome Perrin

calendar: XXX for now only supports group presence period without a periodicity stop date

cf 2c54e0f5
parent a058d6a7
......@@ -65,14 +65,14 @@ class GroupCalendarAssignment(PresencePeriod):
if method is None:
group_calendar = self.getSpecialiseValue()
if group_calendar is not None:
start_date = self.getStartDate()
# start_date = self.getStartDate()
stop_date = self.getStopDate()
period_list = []
for period in group_calendar.objectValues(
portal_type=self.getPortalCalendarPeriodTypeList()):
period_list.append(
period.asContext(
start_date=max(period.getStartDate(start_date), start_date),
#start_date=max(period.getStartDate(start_date), start_date),
periodicity_stop_date=min(
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