From 0bfa7e390d38e255d85e531b69d472c59ee10da9 Mon Sep 17 00:00:00 2001 From: Richard Mathot Date: Wed, 10 Aug 2016 14:33:16 +0200 Subject: [PATCH] [FIX] hr_payroll_account: put the with_context at the right place --- .../wizard/hr_payroll_payslips_by_employees.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_payroll_account/wizard/hr_payroll_payslips_by_employees.py b/addons/hr_payroll_account/wizard/hr_payroll_payslips_by_employees.py index 0b6ee400dc2..296d7b0810a 100644 --- a/addons/hr_payroll_account/wizard/hr_payroll_payslips_by_employees.py +++ b/addons/hr_payroll_account/wizard/hr_payroll_payslips_by_employees.py @@ -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()