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

Oversight of previous forward-port.
This commit is contained in:
Christophe Simonis
2019-06-21 12:21:36 +02:00
parent 355ef10a82
commit 8747d72f1e
3 changed files with 4 additions and 0 deletions
@@ -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({
+1
View File
@@ -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
}) })