콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3518 화면

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
2162
1
10월 23
1275
2
3월 23
2977
3
8월 22
8987
1
10월 21
11459