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

Dear community,

When I tried to install a new Odoo 10 module (this is not a public module, but a module made by one a developper), I get the following error (hopefully on a copy of a production database). It seems related to the core and not the module as when I try to make an "upgrade" of base module, I also get this error.

I try of course to have a look in Warehouse under Inventory menu and even in PostGreSQL database, but I didn't find any duplicate entry.

For the full trace of the error, please follow this link : https://pastebin.com/1VB57Wgy

For a look of the content of the table stock_warehouse (not sure if this is the right table affected by the issue) : https://snag.gy/LVTOX9.jpg

Any idea of how to fix this issue?

Thanks


아바타
취소
베스트 답변
This error may occur because your xml ids and function names in the relevant model are found in other addons.
아바타
취소
베스트 답변

Hi,

From the error image you have posted itself, its possible to understand the issue. regarding the custom module you have created we have no idea.

"duplicate key value violates unique constraint "stock_warehouse_warehouse_name_uniq"

Anyway issue is that there is field for which unique constraints is given. It can be given by default or by your developer.

As a result no duplicate entry will be accepted. But there is a duplicate entry is created or given in the data file. Thats why you getting this error.

Either you can remove the unique constraints or remove the duplicate record.


Thanks

아바타
취소
작성자

Thanks for the answer, as explained, but my issue is I cannot find where this unique constraint is. When I look in the database, I find nowhere this constraint is not met.

관련 게시물 답글 화면 활동
0
12월 22
2223
1
7월 19
18071
1
3월 19
5436
1
3월 15
10737
1
3월 15
4064