Skip to content
Permalink
Browse files

[IMP] hr_payroll: Set structure on generated payslips from benefits

closes #30432
  • Loading branch information...
tivisse committed Feb 18, 2019
1 parent 1e12ce3 commit 7cd45840fc9b7f678fb50512d6c6e9c2933bdce2
Showing with 1 addition and 0 deletions.
  1. +1 −0 addons/hr_payroll/wizard/hr_payroll_payslips_by_employees.py
@@ -51,6 +51,7 @@ def compute_sheet(self):
for contract in employee._get_contracts(payslip_run.date_start, payslip_run.date_end, states=['open', 'pending', 'close']):
values.update({
'contract_id': contract.id,
'struct_id': contract.struct_id.id,
})
payslip = self.env['hr.payslip'].new(values)
payslip.onchange_employee()

0 comments on commit 7cd4584

Please sign in to comment.
You can’t perform that action at this time.