Files
suite/hr_payroll_account_batch/wizard/payroll_wizard.py
2019-07-23 15:13:39 -07:00

13 lines
410 B
Python

from odoo import api, models
class HrPayslipEmployees(models.TransientModel):
_inherit = 'hr.payslip.employees'
@api.multi
def compute_sheet(self):
date = False
if self.env.context.get('active_id'):
date = self.env['hr.payslip.run'].browse(self.env.context.get('active_id')).date
return super(HrPayslipEmployees, self.with_context(date=date)).compute_sheet()