mirror of
https://gitlab.com/sonalarora/tra_backend.git
synced 2025-12-21 04:09:08 +02:00
add new module
This commit is contained in:
13
oh_employee_documents_expiry/models/hr_documents.py
Normal file
13
oh_employee_documents_expiry/models/hr_documents.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user