update education module
This commit is contained in:
@@ -2,13 +2,29 @@
|
||||
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class EducationClass(models.Model):
|
||||
_name = 'education.class'
|
||||
_description = 'Education Class'
|
||||
_name = "education.class"
|
||||
_description = "Education Class"
|
||||
|
||||
name = fields.Char(string='Name', required=True)
|
||||
class_group_id = fields.Many2one('education.class.group', string='Class Group', ondelete='restrict')
|
||||
next_class_id = fields.Many2one('education.class', string='Next Class')
|
||||
name = fields.Char(string="Name", required=True)
|
||||
class_group_id = fields.Many2one(
|
||||
"education.class.group", string="Class Group", ondelete="restrict"
|
||||
)
|
||||
next_class_id = fields.Many2one("education.class", string="Next Class")
|
||||
|
||||
attachment_ids = fields.Many2many('ir.attachment', 'education_student_ir_attachment_rel',
|
||||
'attachment_id', 'student_id', string='Attachments')
|
||||
attachment_ids = fields.Many2many(
|
||||
"ir.attachment",
|
||||
"education_student_ir_attachment_rel",
|
||||
"attachment_id",
|
||||
"student_id",
|
||||
string="Attachments",
|
||||
)
|
||||
|
||||
currency_id = fields.Many2one("res.currency", string="Currency")
|
||||
class_fund = fields.Monetary(string="Class Fund", currency_field="currency_id")
|
||||
student_ids = fields.One2many("education.student", "class_id", string="Students")
|
||||
school_id = fields.Many2one("education.school", string="School", required=True)
|
||||
active = fields.Boolean(string="Active", default=True)
|
||||
school_id = fields.Many2one("education.school", string="School", required=True)
|
||||
teacher_ids = fields.Many2many("res.partner", string="Teachers")
|
||||
|
||||
Reference in New Issue
Block a user