Community mailing list archives

community@mail.odoo.com

Re: reinstalling website module generates integrety error

by
Arjan Duijs
- 09/28/2015 09:28:02
This error is not only occuring during the reinstall of the website module but with ALL install/uprade/remove action of any module
ValueError: "insert or update on table "website" violates foreign key constraint "website_company_id_fkey"
DETAIL:  Key (company_id)=(3) is not present in table "res_company".
" while evaluating
u"self.button_immediate_install(cr, uid, context.get('active_ids', []), context=context)"
Is there a solution for these kind of integrety errors? or this one specific?
starting with a fresh new install not really is an here..

hope you can help.

regards

2015-09-26 17:09 GMT-05:00 Arjan Duijs <arjanduijs@gmail.com>:
I am trying to reinstall the website module (after uninstalling it while thinking i was uninstalling the shop module..sigh) but it generates the following 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: Companies - res.company]

any idea how to solve this?

thanks