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