Skip to Content
Menu
This question has been flagged
1 Reply
12641 Views

Hi, 

Can someone tell me why happens this error?

Im just trying to update my module normally but I don't know what does this mean

Im in Windows Server and already restart Odoo and Postgres

psycopg2.IntegrityError: insert or update on table "recibos_de_semilla" violates foreign key constraint "recibos_de_semilla_semilla_id_fkey" DETAIL: Key (semilla_id)=(39) is not present in table "product_product"

Thank you very much for your help

Avatar
Discard
Best Answer

Hi,

You are trying to insert or update table named recibos_de_semilla and there is the values foe the field semilla_id which is foreign key from product_product table and this value not present in product_product table. 

Make sure that all semilla_id field values is present in product_product table.

Hope this will help.

Avatar
Discard
Author

Thank you, I check what you said, in other DB I solved uninstalling and installing again

Related Posts Replies Views Activity
1
Mar 23
4462
2
Feb 23
1713
1
Mar 15
3689
1
Mar 15
3714
3
Mar 15
4330