Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
2330 Vizualizări

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


Imagine profil
Abandonează

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 Cel mai bun răspuns

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. 

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
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.

Related Posts Răspunsuri Vizualizări Activitate
1
apr. 25
730
3
ian. 23
7623
1
aug. 25
314
3
iul. 25
2119
2
iun. 25
1767