Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3592 Widoki

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



Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 23
2234
1
paź 23
1337
2
mar 23
3026
3
sie 22
9066
1
paź 21
11539