16 lines
485 B
Python
16 lines
485 B
Python
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)
|
|
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"
|
|
)
|