[FIX] hr_payroll_account: put the with_context at the right place

This commit is contained in:
Richard Mathot
2016-08-10 14:33:59 +02:00
parent 6a434fae8a
commit 0bfa7e390d
@@ -11,4 +11,4 @@ class HrPayslipEmployees(models.TransientModel):
journal_id = False
if self.env.context.get('active_id'):
journal_id = self.env['hr.payslip.run'].browse(self.env.context.get('active_id')).journal_id.id
return super(HrPayslipEmployees, self).with_context(journal_id=journal_id).compute_sheet()
return super(HrPayslipEmployees, self.with_context(journal_id=journal_id)).compute_sheet()