mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-08 15:32:31 +01:00
[ADD] 0_openacademy: add new m
This commit is contained in:
parent
ae315ded4d
commit
cb98f817c5
15 changed files with 383 additions and 0 deletions
19
0_openacademy/models/openacademy_class.py
Normal file
19
0_openacademy/models/openacademy_class.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
from odoo import models, fields
|
||||
|
||||
class OpenacademyClass(models.Model):
|
||||
_name="openacademy.class"
|
||||
_description = "openacademy class"
|
||||
|
||||
name = fields.Char(string="Class Name",required=True)
|
||||
description = fields.Text()
|
||||
course_id = fields.Many2one('openacademy.course',string="course id") #string course id hiển thị trên giao diện
|
||||
|
||||
class class_add(models.Model):
|
||||
_name="openacademy.class"
|
||||
_inherit = "openacademy.class"
|
||||
room = fields.Char(string="phòng học")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue