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
139
Merge Requests
139
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
ac96b631
Commit
ac96b631
authored
Jul 09, 2016
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
calendar: XXX for now only supports group presence period without a periodicity stop date
cf
2c54e0f5
parent
a058d6a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_calendar/DocumentTemplateItem/portal_components/document.erp5.GroupCalendarAssignment.py
...ortal_components/document.erp5.GroupCalendarAssignment.py
+2
-2
No files found.
bt5/erp5_calendar/DocumentTemplateItem/portal_components/document.erp5.GroupCalendarAssignment.py
View file @
ac96b631
...
...
@@ -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
))
)
...
...
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