mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
13 lines
410 B
Python
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()
|