我有一个字段“required”= True,并且我想要以继承形式更改为False。如何更改xml中的字段要求?
<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的蟒蛇文件,如果它按照要求=真那么<属性名=“需要”>被标记假不行 – prakash
它设置为真 –