[FIX] hr_holidays: fix end of year error
Fixes an error happening near the end of the year with one of the test.
The error was introduced with 254d6a71e8
TaskId-2724172
closes odoo/odoo#82028
X-original-commit: 1de3a4bee7b1df4960694d0851e72ef2eecb98a9
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
This commit is contained in:
@@ -99,7 +99,6 @@ class TestHolidaysFlow(TestHrHolidaysCommon):
|
||||
'employee_id': self.employee_emp_id,
|
||||
'state': 'validate',
|
||||
'date_from': time.strftime('%Y-%m-01'),
|
||||
'date_to': time.strftime('%Y-12-31'),
|
||||
}, {
|
||||
'name': 'Paid Time off for David',
|
||||
'holiday_status_id': holiday_status_paid_time_off.id,
|
||||
@@ -107,7 +106,6 @@ class TestHolidaysFlow(TestHrHolidaysCommon):
|
||||
'employee_id': self.ref('hr.employee_admin'),
|
||||
'state': 'validate',
|
||||
'date_from': time.strftime('%Y-%m-01'),
|
||||
'date_to': time.strftime('%Y-12-31'),
|
||||
}
|
||||
])
|
||||
|
||||
@@ -145,7 +143,6 @@ class TestHolidaysFlow(TestHrHolidaysCommon):
|
||||
'number_of_days': 2,
|
||||
'state': 'confirm',
|
||||
'date_from': time.strftime('%Y-%m-01'),
|
||||
'date_to': time.strftime('%Y-12-31'),
|
||||
})
|
||||
# HrUser validates the first step
|
||||
|
||||
|
||||
Reference in New Issue
Block a user