Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
1848 Переглядів

I'm trying to update more than 25 thousand reordering rules and I can't.

I am using a template with the following headers


product_id, id, product_max_qty, product_min_qty, route_id, location_id


but it sends me the message "the values of the fields "location_id, product_id, company_id" already exist


It's an emergency with a client, can someone help me?

Аватар
Відмінити
Автор Найкраща відповідь

Thank you very much for the contribution. I was able to solve it in the following way. First I checked the integrity of the data and cleaned it because there were some invalid values. The fields that are needed to upload new rules, which are not registered, are:

product_id, product_min_qty, qty_to_order, route_id, location_id


If it is about updating the existing ones, the fields are:

Id, product_id, product_min_qty, qty_to_order, route_id, location_id

But you have to be careful because if you have a product in 4 warehouses, 4 different IDs will be displayed and this can cause conflict.

In my case, I found the errors in:

“Dirty” input data

Id's incorrectly cataloged

Wanting to update more columns than just: product_id, product_min_qty, qty_to_order, route_id, location_id

Аватар
Відмінити
Найкраща відповідь

I thinl it is because you do not have the xml id of the records. Then Odoo assume you want to add records.

Export the transctions and make sure you select the box "I want to update".  Then you get the XML id for each record.  

When import with your changes, only select the fields you want to update in additon to the xml id.

To make sure you get the correct id in fields you want to change, make sure that one record that you export have the correct value that you want to change to.

In the import wizard there on each related field there is also an option like "Create if not exist".  It should not be ticked.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
січ. 23
2318
3
лип. 25
1550
2
серп. 23
2966
1
вер. 22
2295
3
жовт. 20
3037