Commit 43a37bab authored by Georgios Dagkakis's avatar Georgios Dagkakis

erp5_hr_calendar: cleanups in GroupCalendarAssignment_getPeriodList

parent 6792e375
"""
XXX duplicated here because original one is using woelfel.start_date sql table to
filter out public holiday lines
"""
assert context.getPortalType() == "Group Calendar Assignment"
portal = context.getPortalObject()
period_list = []
# look when we workers should be available with time tables
group_calendar = context.getSpecialiseValue()
if group_calendar is not None:
context.log("group_calendar", group_calendar)
period_dict = {}
for period in group_calendar.objectValues(portal_type=portal.getPortalCalendarPeriodTypeList()):
period_list.append(period)
......
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