[FIX] hr_{holidays,payroll}: force no validity start date for test leave types
Oversight of previous forward-port.
This commit is contained in:
@@ -18,6 +18,7 @@ class TestChangeDepartment(TestHrHolidaysBase):
|
|||||||
'name': 'NotLimitedHR',
|
'name': 'NotLimitedHR',
|
||||||
'allocation_type': 'no',
|
'allocation_type': 'no',
|
||||||
'validation_type': 'hr',
|
'validation_type': 'hr',
|
||||||
|
'validity_start': False,
|
||||||
})
|
})
|
||||||
|
|
||||||
def create_holiday(name, start, end):
|
def create_holiday(name, start, end):
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ class TestOutOfOffice(TestHrHolidaysBase):
|
|||||||
'name': 'Legal Leaves',
|
'name': 'Legal Leaves',
|
||||||
'time_type': 'leave',
|
'time_type': 'leave',
|
||||||
'allocation_type': 'no',
|
'allocation_type': 'no',
|
||||||
|
'validity_start': False,
|
||||||
})
|
})
|
||||||
|
|
||||||
def test_leave_ooo(self):
|
def test_leave_ooo(self):
|
||||||
@@ -87,6 +88,7 @@ class TestOutOfOfficePerformance(TestHrHolidaysBase):
|
|||||||
'name': 'Legal Leaves',
|
'name': 'Legal Leaves',
|
||||||
'time_type': 'leave',
|
'time_type': 'leave',
|
||||||
'allocation_type': 'no',
|
'allocation_type': 'no',
|
||||||
|
'validity_start': False,
|
||||||
})
|
})
|
||||||
self.leave_date_end = (datetime.today() + relativedelta(days=3))
|
self.leave_date_end = (datetime.today() + relativedelta(days=3))
|
||||||
self.leave = self.env['hr.leave'].create({
|
self.leave = self.env['hr.leave'].create({
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ class TestPayslipBase(TransactionCase):
|
|||||||
'name': 'Legal Leaves',
|
'name': 'Legal Leaves',
|
||||||
'time_type': 'leave',
|
'time_type': 'leave',
|
||||||
'allocation_type': 'no',
|
'allocation_type': 'no',
|
||||||
|
'validity_start': False,
|
||||||
'benefit_type_id': self.benefit_type_leave.id
|
'benefit_type_id': self.benefit_type_leave.id
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user