Files
enterprise/hr_payroll/models/note.py
T
2024-04-28 11:43:49 +08:00

13 lines
408 B
Python

# -*- coding:utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class PayrollNote(models.Model):
_name = 'hr.payroll.note'
_description = "Payroll Note"
name = fields.Char(required=True)
note = fields.Html(required=True)
company_id = fields.Many2one('res.company', required=True, default=lambda self: self.env.company)