# -*- coding: utf-8 -*- from odoo import api, fields, models, _ class SoongNote(models.Model): _name = 'soong.note' name = fields.Char(string="审批意见") sequence = fields.Char(string='序号', store=True) note_setting_id = fields.Many2one('soong.note.setting', string="意见类型") # type = fields.Selection([('agree', '同意'), ('return', '退回'), ('refuse', '拒绝'), ('super', '督办')], # string="意见类型") # return_type = fields.Char(string="退回类型")