Files
shcool/college/models/about_page.py
T
2026-08-07 11:49:59 +08:00

23 lines
880 B
Python

from odoo import fields, models
class YuthonAboutPage(models.Model):
"""关于页:系统说明 / 操作手册等静态富文本内容。
每条记录对应一个说明页面,菜单通过 act_window 的 res_id 直接打开预置记录,
师生均可阅读;老师 / 管理员可编辑内容。
"""
_name = 'yuthon.about.page'
_description = '关于页(系统说明 / 操作手册)'
_order = 'sequence, id'
name = fields.Char(string='标题', required=True, translate=True)
category = fields.Selection([
('system', '系统说明'),
('operation', '操作手册'),
], string='分类', default='system', required=True)
content = fields.Html(string='内容', sanitize=True, translate=True)
sequence = fields.Integer(string='排序', default=10)
active = fields.Boolean(string='已发布', default=True)