Initial commit of hr_payroll_account_batch for 11.0

This commit is contained in:
Jared Kipe
2019-04-04 12:29:53 -07:00
parent 8aba347da8
commit 6390bf967c
7 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
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()