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', )