update
This commit is contained in:
@@ -7,7 +7,6 @@ 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 viên đăng ký khóa học')
|
||||
|
||||
_sql_constraints = [(
|
||||
'code_unique',
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
<group>
|
||||
<field name="name" />
|
||||
<field name="code" />
|
||||
<field name="student_ids" widget="many2many_tags" />
|
||||
<field name="description" />
|
||||
</group>
|
||||
</sheet>
|
||||
@@ -25,7 +24,6 @@
|
||||
<list string="">
|
||||
<field name="name" />
|
||||
<field name="code" />
|
||||
<field name="student_ids" widget="many2many_tags" />
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user