Files
tra_backend/oh_employee_documents_expiry/models/hr_documents.py
2020-07-21 10:09:46 +00:00

14 lines
602 B
Python

from odoo import models, fields
class HrDocument(models.Model):
_name = 'hr.document'
_description = 'Documents Template '
name = fields.Char(string='Document Name', required=True, copy=False, help='You can give your'
'Document name here.')
note = fields.Text(string='Note', copy=False, help="Note")
attach_id = fields.Many2many('ir.attachment', 'attach_rel', 'doc_id', 'attach_id3', string="Attachment",
help='You can attach the copy of your document', copy=False)