mirror of
https://gitlab.com/sonalarora/tra_backend.git
synced 2025-12-17 10:19:09 +02:00
work on payroll
This commit is contained in:
@@ -160,6 +160,10 @@ class HrPayslip(models.Model):
|
||||
# if we don't give the contract, then the rules to apply should be for all current contracts of the employee
|
||||
contract_ids = payslip.contract_id.ids or \
|
||||
self.get_contract(payslip.employee_id, payslip.date_from, payslip.date_to)
|
||||
for contract in contract_ids:
|
||||
print('contract++++++++++++++++=',contract)
|
||||
self.emp_salary_line_ids[(0, 0, {
|
||||
'employee_id': self.employee_id.id, })]
|
||||
lines = [(0, 0, line) for line in self._get_payslip_lines(contract_ids, payslip.id)]
|
||||
payslip.write({'line_ids': lines, 'number': number})
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user