mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-04-17 11:35:31 +08:00
19 lines
524 B
Python
19 lines
524 B
Python
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")
|
|
|
|
|
|
|
|
|
|
|