odoo18/addons_extensions/hr_payroll/models/note.py

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)