Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3510 Представления

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
мар. 23
2160
1
окт. 23
1269
2
мар. 23
2973
3
авг. 22
8986
1
окт. 21
11458