add education module

This commit is contained in:
2025-02-21 18:00:17 +07:00
parent 73cb3bd36c
commit 2b170da354
12 changed files with 175 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
from odoo import models, fields
class EducationClass(models.Model):
_name = 'education.class'
_description = 'Education Class'
name = fields.Char(string='Name', required=True)
class_group_id = fields.Many2one('education.class.group', string='Class Group', ondelete='restrict')
next_class_id = fields.Many2one('education.class', string='Next Class')
attachment_ids = fields.Many2many('ir.attachment', 'education_student_ir_attachment_rel',
'attachment_id', 'student_id', string='Attachments')