Skip to content
Snippets Groups Projects
Commit 8747d72f authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[FIX] hr_{holidays,payroll}: force no validity start date for test leave types

Oversight of previous forward-port.
parent 355ef10a
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ class TestChangeDepartment(TestHrHolidaysBase):
'name': 'NotLimitedHR',
'allocation_type': 'no',
'validation_type': 'hr',
'validity_start': False,
})
def create_holiday(name, start, end):
......
......@@ -17,6 +17,7 @@ class TestOutOfOffice(TestHrHolidaysBase):
'name': 'Legal Leaves',
'time_type': 'leave',
'allocation_type': 'no',
'validity_start': False,
})
def test_leave_ooo(self):
......@@ -87,6 +88,7 @@ class TestOutOfOfficePerformance(TestHrHolidaysBase):
'name': 'Legal Leaves',
'time_type': 'leave',
'allocation_type': 'no',
'validity_start': False,
})
self.leave_date_end = (datetime.today() + relativedelta(days=3))
self.leave = self.env['hr.leave'].create({
......
......@@ -57,6 +57,7 @@ class TestPayslipBase(TransactionCase):
'name': 'Legal Leaves',
'time_type': 'leave',
'allocation_type': 'no',
'validity_start': False,
'benefit_type_id': self.benefit_type_leave.id
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment