Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
4265 Vistas

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
Descartar
Mejor respuesta
This error may occur because your xml ids and function names in the relevant model are found in other addons.
Avatar
Descartar
Mejor respuesta

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
Descartar
Autor

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.

Publicaciones relacionadas Respuestas Vistas Actividad
0
dic 22
1942
1
jul 19
17758
1
mar 19
5207
1
mar 15
10466
1
mar 15
3837