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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Gambier
erp5
Commits
b42c5433
Commit
b42c5433
authored
Jan 04, 2016
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_hr_calendar: fixed alarm name and use proxy role when needed
parent
55302d19
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
bt5/erp5_hr_calendar/WorkflowTemplateItem/portal_workflow/hr_calendar_interaction_workflow/scripts/PublicHoliday_afterValidate.xml
...eraction_workflow/scripts/PublicHoliday_afterValidate.xml
+1
-1
bt5/erp5_hr_calendar/WorkflowTemplateItem/portal_workflow/hr_calendar_interaction_workflow/scripts/TimeTableLine_afterEdit.xml
..._interaction_workflow/scripts/TimeTableLine_afterEdit.xml
+9
-1
No files found.
bt5/erp5_hr_calendar/WorkflowTemplateItem/portal_workflow/hr_calendar_interaction_workflow/scripts/PublicHoliday_afterValidate.xml
View file @
b42c5433
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
# When updating public holidays, we have to recatalog group calendar\n
<value>
<string>
# When updating public holidays, we have to recatalog group calendar\n
# assignments since they could be affected\n
# assignments since they could be affected\n
context.getPortalObject().portal_alarms.
woelfel_
update_time_table_end_periodicity.activate(priority=5).activeSense()\n
context.getPortalObject().portal_alarms.update_time_table_end_periodicity.activate(priority=5).activeSense()\n
</string>
</value>
</string>
</value>
</item>
</item>
<item>
<item>
...
...
bt5/erp5_hr_calendar/WorkflowTemplateItem/portal_workflow/hr_calendar_interaction_workflow/scripts/TimeTableLine_afterEdit.xml
View file @
b42c5433
...
@@ -68,7 +68,7 @@ if not(None in (day_of_week, quantity)):\n
...
@@ -68,7 +68,7 @@ if not(None in (day_of_week, quantity)):\n
stop_date = start_date + 1.0/24*quantity\n
stop_date = start_date + 1.0/24*quantity\n
time_table_line.setStopDate(stop_date)\n
time_table_line.setStopDate(stop_date)\n
# after change, make sure to update group calendars through the usual alarm\n
# after change, make sure to update group calendars through the usual alarm\n
context.getPortalObject().portal_alarms.
woelfel_
update_time_table_end_periodicity.activate(\n
context.getPortalObject().portal_alarms.update_time_table_end_periodicity.activate(\n
priority=5).activeSense()\n
priority=5).activeSense()\n
</string>
</value>
</string>
</value>
</item>
</item>
...
@@ -76,6 +76,14 @@ context.getPortalObject().portal_alarms.woelfel_update_time_table_end_periodicit
...
@@ -76,6 +76,14 @@ context.getPortalObject().portal_alarms.woelfel_update_time_table_end_periodicit
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
state_change, **kw
</string>
</value>
<value>
<string>
state_change, **kw
</string>
</value>
</item>
</item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
<value>
<tuple>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
<value>
<string>
TimeTableLine_afterEdit
</string>
</value>
<value>
<string>
TimeTableLine_afterEdit
</string>
</value>
...
...
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