mirror of
https://github.com/bringout/oca-payroll.git
synced 2026-04-20 17:02:01 +02:00
Initial commit: OCA Payroll packages (5 packages)
This commit is contained in:
commit
d19274f581
407 changed files with 214057 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import hr_payroll_payslips_by_employees
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import models
|
||||
|
||||
|
||||
class HrPayslipEmployees(models.TransientModel):
|
||||
_inherit = "hr.payslip.employees"
|
||||
|
||||
def compute_sheet(self):
|
||||
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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue