问题已解决
fields.One2many 必须关联参数不然会报这个错误
错误写法:
ocp_worker = fields.One2many('res.users', string="观察与沟通人员"
, required=True)
正确写法:
ocp_worker = fields.One2many('res.users','name', string="观察与沟通人员"
, required=True)
H
heminmin
@heminmin
-
No inverse field None found for 'res.users' ? -
No inverse field None found for 'res.users' ?今天写多对多关系,结果报了这个错这是为啥?