Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
4448 Vues

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
Ignorer
Meilleure réponse
This error may occur because your xml ids and function names in the relevant model are found in other addons.
Avatar
Ignorer
Meilleure réponse

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
Ignorer
Auteur

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.

Publications associées Réponses Vues Activité
0
déc. 22
2190
1
juil. 19
18028
1
mars 19
5384
1
mars 15
10714
1
mars 15
4048