Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I have been trying to inherit some fields in my custom module. One of the fields have property as "required=True" and I dont want that field in my model view. I have placed a button in my module to open the product.product form. the product.product form has a field "name" which is a required field and I dont want this field. When I try to click the button I get error .
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: name - name]
Then I tried to set the default value for "name" field. No more error now but by doing this its creating records in the product.product table with this default value and its doing this everytime the button is clicked.
There seems to me some inheritance problem here because I tried to set the property of the field as "False" but that also didnot work. Hopes for suggestions and guidance so that I can able to fix this. Thanks
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/29/14, 3:26 AM|
|Seen: 1433 times|
|Last updated: 3/16/15, 8:10 AM|