Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2081 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ