From c435c2ee6f0e807da0eb1cacdab53d3c939e9f6f Mon Sep 17 00:00:00 2001 From: Kevin Baptiste Date: Tue, 13 Jun 2023 09:39:09 +0000 Subject: [PATCH] [FIX] hr_holidays: fix test failing on weekends The test would fail when running on a weekend, as the employee would be considered not working. Runbot error-21971. closes odoo/odoo#125097 X-original-commit: c6d95961fa8d6bce2f7c290d2d45eb2195950d74 Signed-off-by: Kevin Baptiste --- addons/hr_holidays/tests/test_leave_requests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/hr_holidays/tests/test_leave_requests.py b/addons/hr_holidays/tests/test_leave_requests.py index 840e8b9b766..d482bc1613a 100644 --- a/addons/hr_holidays/tests/test_leave_requests.py +++ b/addons/hr_holidays/tests/test_leave_requests.py @@ -1058,6 +1058,7 @@ class TestLeaveRequests(TestHrHolidaysCommon): with self.assertRaises(ValidationError): self.env['hr.leave'].with_user(self.user_employee_id).create(trigger_error_leave) + @freeze_time('2022-06-13 10:00:00') def test_current_leave_status(self): types = ('no_validation', 'manager', 'hr', 'both') employee = self.employee_emp