Odoo14学习笔记(7) Many2one中使用domain过滤数据
departmentId = fields.Many2one('ohs.department', u'车间/实验室', required=True, ondelete="restrict", domain="[('category', '=', '3')]")
departmentId = fields.Many2one('ohs.department', u'车间/实验室', required=True, ondelete="restrict", domain="[('category', '=', '3')]")