我需要删除已登录res.users
表的合作伙伴。当我尝试删除该合作伙伴时出现错误:
except_orm: ('Integrity Error', 'The operation cannot be completed, probably due to the following:\n- deletion: you may be trying to delete a record while other records still reference it\n- creation/update: a mandatory field is not correctly set\n\n[object with reference: Res users - res.users]')
。
所以我在ondelete
表中将restrict
的属性值从cascade
更改为partner_id
的{{1}}。同样在res.users
。现在它的工作正常。但是,由于发票中的这种变化,会不会出现任何问题?