[MIG] hr_payroll_overtime: to Odoo Enterprise 15.0

This commit is contained in:
Jared Kipe
2021-10-07 09:28:20 -07:00
parent f7b65bfa56
commit a2dc4999cd
3 changed files with 9 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
{
'name': 'Payroll Overtime',
'description': 'Provide mechanisms to calculate overtime.',
'version': '14.0.1.0.0',
'version': '15.0.1.0.0',
'website': 'https://hibou.io/',
'author': 'Hibou Corp. <hello@hibou.io>',
'license': 'AGPL-3',
@@ -17,5 +17,6 @@
'depends': [
'hr_payroll_hibou',
'hr_work_entry',
'hr_work_entry_contract_enterprise', # only for menu!
],
}

View File

@@ -24,7 +24,12 @@ class TestOvertime(common.TransactionCase):
'overtime_work_type_id': self.work_type_overtime.id,
})
self.employee = self.env.ref('hr.employee_hne')
self.contract = self.employee.contract_ids.filtered(lambda l: l.state == 'open')
self.contract = self.employee.contract_ids.create({
'name': 'testing contract',
'employee_id': self.employee.id,
'date_start': '2020-01-01',
'wage': 2000.0,
})
self.payslip = self.env['hr.payslip'].create({
'name': 'test slip',
'employee_id': self.employee.id,

View File

@@ -97,6 +97,6 @@
<menuitem id="hr_work_entry_overtime_type_menu_main" name="Overtime Rules"
action="hr_work_entry_overtime_type_action_main"
sequence="11" parent="hr_work_entry_contract.menu_hr_work_entry_confirguration"/>
sequence="11" parent="hr_work_entry_contract_enterprise.menu_hr_work_entry_type_view"/>
</odoo>