Public release from ruodoo-project: 19.0 - 2026-11-01 22:52:25 UTC
This commit is contained in:
17
payroll_account/models/hr_payslip_run.py
Normal file
17
payroll_account/models/hr_payslip_run.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# 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",
|
||||
required=True,
|
||||
default=lambda self: self.env["account.journal"].search(
|
||||
[("type", "=", "general")], limit=1
|
||||
),
|
||||
)
|
||||
Reference in New Issue
Block a user