Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
e6bedee7
Commit
e6bedee7
authored
Jan 11, 2018
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_calendar: Presence Request Period to use service as resource
Allign with Leave Request Period
parent
3d1c4cf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
17 deletions
+1
-17
bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_getResourceItemList.py
...skins/erp5_calendar/PresencePeriod_getResourceItemList.py
+1
-17
No files found.
bt5/erp5_calendar/SkinTemplateItem/portal_skins/erp5_calendar/PresencePeriod_getResourceItemList.py
View file @
e6bedee7
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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment