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
+10
View File
@@ -0,0 +1,10 @@
from odoo import models, fields
class EducationStudent(models.Model):
_name = 'education.student'
name = fields.Char(string="Name")
student_code = fields.Char(string='Student Code')
class_id = fields.Many2one('education.class', string='Class')
def get_student_has_class(self):
return self.env['education.student'].search([('class_id', '!=', False)])