mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] hr_payroll_hibou: for Odoo 13.0
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user