How to distingish two locations with the same name/code but on two distinct wharehouses

Hello,

I want to import “Internal moves” in CSV format in order to execute a lot of moves of products from an older wharehouse to a new one, but locations have same names on both wharehouses.

I imagine I can use locations IDs because same names are ambigous, right? but I don’t know how.

Can I have an example off a CSV line that use locations IDs instead of location names for an internal expedition?

It is better to use unique code for location so it is unambiguous.
I’m wondering if we should not enforce that for every record with a code field.

I already made a request Force referential code to be unique (#9322) · Issues · Tryton / Tryton · GitLab.

OK.

In the meantime, is it possible to give the complete path (with parents locations) or the internal ID of a location for a CSV import? If so, what’s the format?

The location tree does not build a tree name because there is no separator defined.
This is coherent with the expected behavior of having unique code.

OK.

So, is it possible to use the ID of a location on a CSV import, in order to create a lot of supplier/customer/internal shipments on the fly?

No ID is not supported for the Many2One, the import method is only searching by “Record Name”.
So you must ensure that the “Record Name” of the targets are unique (which is always a good thing to have).

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.