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,19 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class HrPayslipRun(models.Model):
_inherit = "hr.payslip.run"
journal_id = fields.Many2one(
"account.journal",
"Salary Journal",
states={"draft": [("readonly", False)]},
readonly=True,
required=True,
default=lambda self: self.env["account.journal"].search(
[("type", "=", "general")], limit=1
),
)