版权声明:本文为博主原创文章,转载请注明出处。 https://blog.csdn.net/qq_35367612/article/details/75264085
fields.One2many 必须关联参数不然会报这个错误
错误写法:
ocp_worker = fields.One2many('res.users', string="观察与沟通人员"
, required=True)
正确写法:
ocp_worker = fields.One2many('res.users','name', string="观察与沟通人员"
, required=True)