mirror of
https://github.com/bringout/oca-payroll.git
synced 2026-04-20 08:42:06 +02:00
19 lines
490 B
Python
19 lines
490 B
Python
# 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
|
|
),
|
|
)
|