yuthon_base/project_md/models/ir_ui_view_extend.py
2026-07-16 13:37:10 +08:00

12 lines
294 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from odoo import fields, models
class IrUiView(models.Model):
_inherit = 'ir.ui.view'
# 注册自定义视图类型 mindmap使其能被 ir.ui.view 的 type 字段接受
type = fields.Selection(
selection_add=[('mindmap', 'Mindmap')],
string='View Type',
)