Odoo Help


This community 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.


Please does any one know why am getting this error:

Aijay Ogbugha
on 6/27/13, 12:53 PM 1,415 views

except_osv: ('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: name - name]').

I don't know what am doing wrongly. Please help!!

Thank you.



| 5 4 7
Baarn, Netherlands
On 6/27/13, 12:59 PM

The error is about an impossibility you want to do. If you are saving/modifying something, you did not fill a required field. If you are deleting something, another object depends on the thing you want to delete.

If you can tell what you did, which buttons you pressed, we can help you more.

Did you install any modules developed by yourself/our company or from internet?

Is there anything in the logfile (Ubuntu: /var/log/openerp/openerp-server.log).

With the above information we can help you much quicker...

I created a form to get data for a store voucher. On clicking the "save" button, it brings this error. And i don't have any field called 'name' in my form. I didn't install anything from the internet. I only added my .py and xml files to stock module. Please what am I doing wrongly? Thank you for your response.

Aijay Ogbugha
on 6/27/13, 1:36 PM

If the field is marked as required in .py file then it doesn't matter whether it is on the form or not - it is still mandatory. If you inherited stock object in you own class you also inherited all it's attributes including required fields so they needs to be populated.

on 6/27/13, 5:30 PM

Thank you guys for you help. Nazarii, I just disinherited the stock.move object which has "name" field as a required field. But am still getting that same error. Also, I inherited product.product object but it doesn't have any field "name" not to talk of whether it is required or not. I still need help please. Thank you guys.

Aijay Ogbugha
on 6/28/13, 6:03 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 6/27/13, 12:53 PM
Seen: 1415 times
Last updated: 3/16/15, 8:10 AM