Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
2237 Zobrazení

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
Zrušit

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 Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
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 Odpovědi Zobrazení Aktivita
1
dub 25
709
3
led 23
7560
1
srp 25
96
3
čvc 25
2023
2
čvn 25
1658