Commit b42c5433 authored by Sebastien Robin's avatar Sebastien Robin

erp5_hr_calendar: fixed alarm name and use proxy role when needed

parent 55302d19
......@@ -52,7 +52,7 @@
<key> <string>_body</string> </key>
<value> <string># When updating public holidays, we have to recatalog group calendar\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>
</item>
<item>
......
......@@ -68,7 +68,7 @@ if not(None in (day_of_week, quantity)):\n
stop_date = start_date + 1.0/24*quantity\n
time_table_line.setStopDate(stop_date)\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
</string> </value>
</item>
......@@ -76,6 +76,14 @@ context.getPortalObject().portal_alarms.woelfel_update_time_table_end_periodicit
<key> <string>_params</string> </key>
<value> <string>state_change, **kw</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>TimeTableLine_afterEdit</string> </value>
......
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