diff --git a/addons/hr_holidays/models/hr_leave_allocation.py b/addons/hr_holidays/models/hr_leave_allocation.py index 5edb239a633..4ef3219f7b8 100644 --- a/addons/hr_holidays/models/hr_leave_allocation.py +++ b/addons/hr_holidays/models/hr_leave_allocation.py @@ -504,7 +504,7 @@ class HolidaysAllocation(models.Model): # If a category that created several holidays, cancel all related linked_requests = self.mapped('linked_request_ids') if linked_requests: - linked_requests.linked_request_ids.action_refuse() + linked_requests.action_refuse() self.activity_update() return True