Skip to Content
Menu
This question has been flagged
1 Reply
1855 Views

we just removed some of our sub stock locations in odoo (Done as Stock Manager)


now when i restart odoo from command line " /usr/bin/odoo -u custom_model ...." the updqate fails because of referential integrity check because in stock_picking the location is already referenced.

what can i do now?

Avatar
Discard
Best Answer

Hi,

   write a query to remove all the stock picking, stock moves, stock quant associated with the  location. i think it will resolve the issue.If it is a live server just take a duplicate and try this if it works implement the same in original database.I think by default odoo prevents a location delete if it is linked with any inventory operations.

Avatar
Discard