mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-04-17 11:35:31 +08:00
11 lines
372 B
Python
11 lines
372 B
Python
![]() |
from odoo import models, fields
|
||
|
|
||
|
class Course(models.Model):
|
||
|
_name = 'openacademy.course' #tên trên local là openacademy_course
|
||
|
_description = "OpenAcademy Courses"
|
||
|
|
||
|
name = fields.Char(string="Title", required=True)
|
||
|
description = fields.Text()
|
||
|
class_ids = fields.One2many("openacademy.class","course_id",string="Class")
|
||
|
demo = fields.One2many
|