update education module

This commit is contained in:
2025-02-22 10:32:13 +07:00
parent 2b170da354
commit ab34ac054b
15 changed files with 337 additions and 39 deletions
+11
View File
@@ -0,0 +1,11 @@
from odoo import fields, models
class EductionSchool(models.Model):
_name = 'education.school'
_description = 'School'
name = fields.Char(string='Name', translate=True, required=True)
code = fields.Char(string='Code', copy=False)
class_ids = fields.One2many('education.class', 'school_id', string='Classes')
is_private = fields.Boolean(string='Is Private', groups='viin_education.viin_education_group_admin')