İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3671 Görünümler

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
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Mar 23
2337
1
Eki 23
1385
2
Mar 23
3127
3
Ağu 22
9143
1
Eki 21
11691