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