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

Hi. I want to export existing products. Edit settings and import it again. I have done that with for example changing the invoicing policy. So, I do understand how to do it. My problem is when I want to change the product vendor code. It gives me error. 

Any help would be great as in why it happens. 

The errors is:

The file contains blocking errors
Missing required value for the field 'partner_id' at multiple rows


Avatar
Descartar

With developer mode activated it's easier to find the exact values you want to import/export for the change you desire.

Settings > General Settings > (scroll down) Developer Tools > Activate the developer mode (don't active with assests I assume).

Once you activated developer mode you can use the small "?" that normally gives you information about the field to see what exact model / database name it has, which you can then use for export & import.

In general it's easiest to use the existing ID's instead of names for stuff you want to change.

Odoo debug plugin can be usefull to easily and quickly switch back and forth:
https://chromewebstore.google.com/detail/odoo-debug/hmdmhilocobgohohpdpolmibjklfgkbi

Autor

Can someone please test if it is possible to update reordering rules for "min qty" "max qty" and "to order" fields.

Autor Mejor respuesta

Is there a guide what should all be exported if i want to change something specific. 

I get errors when i want to update the vendor product code, 

And i want on the second company bulk update the reordering rules 0 min 0 max and 1 to order. As the second company dont keep stock and only order what their customers order. 

Avatar
Descartar
Mejor respuesta

Hi,

When you export the vendor code, which is part of the product.supplierinfo model, you also need to include the mandatory fields from that model. When exporting products with vendor codes, make sure to include partner_id( Vendor ) and any other mandatory fields from the product.supplierinfo model. When importing, ensure all mandatory fields are present in your file, including those from related models.


Hope it helps

Avatar
Descartar
Autor

Is there a guide what should all be exported if i want to change something specific.

I get errors when i want to update the vendor product code,

And i want on the second company bulk update the reordering rules 0 min 0 max and 1 to order. As the second company dont keep stock and only order what their customers order.

In general just use the .../External ID - that should avoid most of your problems.

Publicaciones relacionadas Respuestas Vistas Actividad
1
abr 25
637
3
ene 23
7475
3
jul 25
1935
2
jun 25
1545
1
abr 25
1440