mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] hr_payroll_overtime: to Odoo Enterprise 15.0
This commit is contained in:
@@ -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!
|
||||
],
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user