[IMP] hr_payroll_hibou: Control the 'wage_type' at the HR Contract Level

This will make it possible to be more abstract with 'work_type' or 'worked days lines' and overtime.
This commit is contained in:
Jared Kipe
2020-11-27 14:22:16 -08:00
parent 487daf1201
commit 30f1414df5
10 changed files with 118 additions and 2 deletions

View File

@@ -10,16 +10,21 @@ from odoo.tools.float_utils import float_round as odoo_float_round
def process_payslip(payslip):
try:
payslip.action_payslip_done()
return payslip.action_payslip_done()
except AttributeError:
# v9
payslip.process_sheet()
return payslip.process_sheet()
class TestPayslip(common.TransactionCase):
debug = False
_logger = getLogger(__name__)
def process_payslip(self, payslip=None):
if not payslip:
return process_payslip(self.payslip)
return process_payslip(payslip)
def setUp(self):
super(TestPayslip, self).setUp()
self.contract_model = self.env['hr.contract']