Odoo13_多选下拉框
1.models.py
mood = fields.Many2many('mood', string='主要基调') class mood(models.Model): _name = 'mood' _description = '主要基调' name = fields.Char('基调', required=True) # 必填 ext = fields.Char(string='扩展id', default='0')
2.views.xml
<field name="mood" widget="many2many_tags"/>