update education module

This commit is contained in:
2025-02-26 16:28:17 +07:00
parent bc4a67a616
commit f79a7fe0b9
19 changed files with 378 additions and 137 deletions
+10 -6
View File
@@ -1,11 +1,15 @@
from odoo import fields, models
class EductionSchool(models.Model):
_name = 'education.school'
_description = 'School'
_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')
name = fields.Char(string="Name", translate=True, required=True)
code = fields.Char(string="Code", copy=False)
address = fields.Char(string="Address")
class_ids = fields.One2many("education.class", "school_id", string="Classes")
is_private = fields.Boolean(
string="Is Private", groups="education.education_group_admin"
)