Skip to Content
मेन्यू
This question has been flagged
1 Reply
3652 Views

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
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
1
मार्च 23
2293
1
अक्तू॰ 23
1367
2
मार्च 23
3096
3
अग॰ 22
9114
1
अक्तू॰ 21
11628