我有一個字段「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
它設置爲真 –