report student of course

This commit is contained in:
XuanHuyen
2025-04-05 08:47:50 +07:00
parent bfc818f7a6
commit 2858a7cf50
5 changed files with 64 additions and 0 deletions
@@ -7,6 +7,7 @@ class AcademyCourse(models.Model):
name = fields.Char(string='Tên khóa học', required=True)
code = fields.Char(string='Mã khóa học', required=True, copy=False, readonly=True, default=lambda self: _(' '))
description = fields.Text(string='Mô tả khóa học')
student_ids = fields.Many2many('academy.student', string='Học sinh đăng ký')
_sql_constraints = [(
'code_unique',