Moving lots in a location outside the warehouse with intrastat module


We have defined a specific view “Quarantine Location” outside our warehouse (to avoid stock quantities for items in this location). When we have a problem with a lot we move his location under the quarantine view.

We have an android app to manage stocks and doing internal moves quickly with barcode scanning.
User met a problem to move a lot to the location in quarantine because of intrastat module. Indeed, quarantine view has no address (because outside of warehouse) and then instrastat raise a warning there is no country for the move.

How to bypass this warning ( in our application to do the move?

When doing such thing, exception is caught, but the move is not done:

        except CountryNotFound as w:

How to continue the process in the “do” method after the exception is raised?

How do you deal with a quarantine location ?

Solved using this decorator with route:

@with_transaction(context={'_skip_warnings': True})

Skipping the warning does not sound good because you may skip also other warnings.

Indeed I think we should have a way to get the country of such location outside the warehouse.
Maybe by allowing address on storage location without a warehouse.

Indeed, this would be a better solution :slight_smile:
Anyway, wondering where such ‘Quarantine storage zone’ should be located. Indeed, products should not be part of the stock quantities but products are still there in the warehouse. So maybe i’m wrong to define such location outside the warehouse ?
Did someone else using a “Quarantine Location” ? Where do you locate such place ?

For me you could put the location under the warehouse but not under the storage location.

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