跳至内容
菜单
此问题已终结
1 回复
3407 查看

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
2050
1
10月 23
1186
2
3月 23
2864
3
8月 22
8818
1
10月 21
11315