Skip to Content
Menu
This question has been flagged
4 Replies
4543 Views

we need to remove a special stock location. 

first we made inventory adjustment of the product that was in this stock location but now i can not delete the stock location but it is still referenced from stock_inventory_line


what is the correct workflow to delete a stock_location?

Avatar
Discard
Best Answer

Hi,

For this first of all you have to delete those records in which this location is referenced. Suppose if the location is specified or used in a model A , Model B and Model C, you have to delete those records first, then you can delete the location, where model A, Model B and model C stock.move.line or stock.move etc.


Thanks

Avatar
Discard
Author

ok but i am not allowed to delete a n already finished inventory change. so you mean i should delete them through Database directly?

There are lof of modules in the store which helps to cancel finished pickings. unfortunately most of them seems to be paid, from the code you can do it

Best Answer

You should archive location instead of deleting it.

Avatar
Discard