diff --git a/bt5/erp5_hr_calendar/WorkflowTemplateItem/portal_workflow/hr_calendar_interaction_workflow/scripts/PublicHoliday_afterValidate.xml b/bt5/erp5_hr_calendar/WorkflowTemplateItem/portal_workflow/hr_calendar_interaction_workflow/scripts/PublicHoliday_afterValidate.xml index 6e30ff98f76e62c95d3c71dcc27245fb79afcba6..7b6dcf9a663b78bd8e72facd00e08cb1efaad0de 100644 --- a/bt5/erp5_hr_calendar/WorkflowTemplateItem/portal_workflow/hr_calendar_interaction_workflow/scripts/PublicHoliday_afterValidate.xml +++ b/bt5/erp5_hr_calendar/WorkflowTemplateItem/portal_workflow/hr_calendar_interaction_workflow/scripts/PublicHoliday_afterValidate.xml @@ -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> diff --git a/bt5/erp5_hr_calendar/WorkflowTemplateItem/portal_workflow/hr_calendar_interaction_workflow/scripts/TimeTableLine_afterEdit.xml b/bt5/erp5_hr_calendar/WorkflowTemplateItem/portal_workflow/hr_calendar_interaction_workflow/scripts/TimeTableLine_afterEdit.xml index 01f37c8a1834fbd28387380194bb04fb066ce0d1..9a55fa8ce8412963c7a5f91337e5886d6804b1a2 100644 --- a/bt5/erp5_hr_calendar/WorkflowTemplateItem/portal_workflow/hr_calendar_interaction_workflow/scripts/TimeTableLine_afterEdit.xml +++ b/bt5/erp5_hr_calendar/WorkflowTemplateItem/portal_workflow/hr_calendar_interaction_workflow/scripts/TimeTableLine_afterEdit.xml @@ -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>