shcool/learning_center/models/teach_class.py
2026-06-16 19:21:41 +08:00

15 lines
633 B
Python

from odoo import api,fields,models
class TeachClass(models.Model):
_name = 'teach.class'
course_teaching_class=fields.Many2one('course.teaching_class',string="教学班")
student_id=fields.Many2one('student.info',string='学生')
stu_num=fields.Char(related='student_id.stu_num',string='学号')
stu_name=fields.Char(related='student_id.stu_name',string='姓名')
stu_sex = fields.Selection(related='student_id.stu_sex', string="性别")
stu_phone = fields.Char(related='student_id.stu_phone', string="手机号")
stu_grade_xx = fields.Many2one(related='student_id.stu_grade_xx', string="年级")