Skip to content
Permalink
Browse files

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

  • Loading branch information...
tivisse committed Feb 18, 2019
1 parent b5246cd commit 222cd0a970081f1aa050e33ba178177c5bb1c15f
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 222cd0a

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