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
No related merge requests found
portal = context.getPortalObject()
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)
return context.Ticket_getResourceItemList()
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