Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
3414 Vizualizări

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".



Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
mar. 23
2059
1
oct. 23
1195
2
mar. 23
2870
3
aug. 22
8827
1
oct. 21
11320