Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3607 Zobrazení

I've deleted this constraint  stock_quant_product_id_fkey  but still showing this error.

Error:

The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead. Model: Quants (stock.quant), Constraint: stock_quant_product_id_fkey

Logs: 

psycopg2.IntegrityError: insert or update on table "stock_quant" violates foreign key constraint "stock_quant_product_id_fkey"

DETAIL: Key (product_id)=(40057) is not present in table "product_product".



Avatar
Zrušit
Nejlepší odpověď

You are trying to insert a product id in product_id field which isn't exist on product_product table

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 23
2239
1
říj 23
1344
2
bře 23
3035
3
srp 22
9077
1
říj 21
11553