Skip to Content
Menu
This question has been flagged
2 Replies
4216 Views

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


Avatar
Discard
Best Answer
This error may occur because your xml ids and function names in the relevant model are found in other addons.
Avatar
Discard
Best Answer

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

Avatar
Discard
Author

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.

Related Posts Replies Views Activity
0
Dec 22
1893
1
Jul 19
17694
1
Mar 19
5168
1
Mar 15
10412
1
Mar 15
3813