mirror of
https://gitlab.com/sonalarora/tra_backend.git
synced 2025-12-17 18:29:08 +02:00
add gym module
This commit is contained in:
23
gym/models/project_document_group.py
Normal file
23
gym/models/project_document_group.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import api, fields, models, _
|
||||
|
||||
class ProjectDocumentGroup(models.Model):
|
||||
|
||||
_name = 'project.document.group'
|
||||
_description = "Documents Group"
|
||||
_rec_name = "category_id"
|
||||
|
||||
# --------------------------------------------------------------------
|
||||
# FIELDS
|
||||
# --------------------------------------------------------------------
|
||||
|
||||
category_id = fields.Many2one(
|
||||
comodel_name="project.document.category",
|
||||
string='Category',
|
||||
)
|
||||
|
||||
document_name_ids = fields.Many2many(
|
||||
comodel_name="project.document.name",
|
||||
string='Documents',
|
||||
)
|
||||
Reference in New Issue
Block a user