跳至內容
選單
此問題已被標幟
1 回覆
2093 瀏覽次數

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?

頭像
捨棄
最佳答案

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.

頭像
捨棄