diff --git a/addons/hr_holidays/hr_holidays.py b/addons/hr_holidays/hr_holidays.py index 9d6328af1eb..d0a52d8a4de 100644 --- a/addons/hr_holidays/hr_holidays.py +++ b/addons/hr_holidays/hr_holidays.py @@ -294,8 +294,8 @@ class hr_holidays(osv.osv): # If a category that created several holidays, cancel all related wf_service = netsvc.LocalService("workflow") - for id in record.linked_request_ids or []: - wf_service.trg_validate(uid, 'hr.holidays', id, 'cancel', cr) + for res in record.linked_request_ids: + wf_service.trg_validate(uid, 'hr.holidays', res.id, 'cancel', cr) return True