【发布时间】:2016-05-20 12:04:47
【问题描述】:
我有一个字段“必需”=True,我想在继承的形式中将其更改为 False。
<field name="customer_id" position="replace">
<attribute name="required">False</attribute>
</field>
但我得到了:
Integrity Error
The operation cannot be completed, probably due to the following:
- deletion: you may be trying to delete a record while other records still reference it
- creation/update: a mandatory field is not correctly set
[object with reference: customer_id - customer.id]
【问题讨论】:
-
检查 customer_id 的 python 文件,如果它被标记为 required=True 则
False 不起作用