Initial commit: OCA Payroll packages (5 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:05 +02:00
commit d19274f581
407 changed files with 214057 additions and 0 deletions

View file

@ -0,0 +1,3 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import hr_payroll_payslips_by_employees

View file

@ -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()