mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Initial commit of hr_payroll_account_batch for 11.0
This commit is contained in:
12
hr_payroll_account_batch/wizard/payroll_wizard.py
Normal file
12
hr_payroll_account_batch/wizard/payroll_wizard.py
Normal 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()
|
||||
Reference in New Issue
Block a user