[FIX] hr_payroll_hibou: for Odoo 13.0

This commit is contained in:
Jared Kipe
2022-01-13 15:08:34 -08:00
parent 33ab9f3019
commit 4aa82ccee9
4 changed files with 5 additions and 7 deletions

View File

@@ -17,4 +17,4 @@ class HrContract(models.Model):
def _get_contract_wage_field(self, work_type=None):
if self.wage_type == 'hourly':
return 'hourly_wage'
return super()._get_contract_wage_field()
return 'wage'

View File

@@ -8,7 +8,7 @@ class HrPayrollStructure(models.Model):
schedule_pay = fields.Selection(selection_add=[
('semi-monthly', 'Semi-monthly'),
], ondelete={'semi-monthly': 'set null'})
])
class HrPayrollStructureType(models.Model):

View File

@@ -126,11 +126,9 @@ class TestPayslip(common.TransactionCase):
'date_from': date_from,
'date_to': date_to
})
# Included in hr.payslip.action_refresh_from_work_entries() as ov 14.0 EE
# slip._onchange_employee()
# as is the 'compute' that is almost always called immediaately after
slip._onchange_employee()
if not skip_compute:
slip.action_refresh_from_work_entries()
slip.compute_sheet()
return slip
def _getCategories(self, payslip):

View File

@@ -58,6 +58,6 @@
<menuitem id="menu_hr_payroll_configuration_updates" name="Payroll Updates"
action="action_payroll_updates"
sequence="20" parent="hr_work_entry_contract_enterprise.menu_hr_payroll_configuration"/>
sequence="20" parent="hr_payroll.menu_hr_payroll_configuration"/>
</odoo>