add education module
This commit is contained in:
@@ -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')
|
||||
Reference in New Issue
Block a user