Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3420 Переглядів

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
2065
1
жовт. 23
1197
2
бер. 23
2878
3
серп. 22
8840
1
жовт. 21
11329