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)
|
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: _(' '))
|
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')
|
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 = [(
|
_sql_constraints = [(
|
||||||
'code_unique',
|
'code_unique',
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
<group>
|
<group>
|
||||||
<field name="name" />
|
<field name="name" />
|
||||||
<field name="code" />
|
<field name="code" />
|
||||||
<field name="student_ids" widget="many2many_tags" />
|
|
||||||
<field name="description" />
|
<field name="description" />
|
||||||
</group>
|
</group>
|
||||||
</sheet>
|
</sheet>
|
||||||
@@ -25,7 +24,6 @@
|
|||||||
<list string="">
|
<list string="">
|
||||||
<field name="name" />
|
<field name="name" />
|
||||||
<field name="code" />
|
<field name="code" />
|
||||||
<field name="student_ids" widget="many2many_tags" />
|
|
||||||
</list>
|
</list>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Reference in New Issue
Block a user