コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3542 ビュー

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



アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
3月 23
2168
1
10月 23
1291
2
3月 23
2997
3
8月 22
9010
1
10月 21
11467