mirror of
https://github.com/bringout/oca-payroll.git
synced 2026-04-23 08:42:08 +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,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
|
||||
),
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue