Commit e6bedee7 authored by Georgios Dagkakis's avatar Georgios Dagkakis

erp5_calendar: Presence Request Period to use service as resource

Allign with Leave Request Period
parent 3d1c4cf0
portal = context.getPortalObject() return context.Ticket_getResourceItemList()
preferred_presence_calendar_period_type = portal.portal_preferences\
.getPreferredPresenceCalendarPeriodType()
method_id = portal.portal_preferences.getPreference(
'preferred_category_child_item_list_method_id', 'getCategoryChildCompactLogicalPathItemList')
category = portal.portal_categories.calendar_period_type
if preferred_presence_calendar_period_type:
category = category.restrictedTraverse(preferred_presence_calendar_period_type, category)
return getattr(category, method_id)(local_sort_id=('int_index', 'translated_title'),
checked_permission='View',
is_self_excluded=0,
base=1)
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