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

My user has created a product. But by mistake he has created multiline Inventory Adjustments in the system. 

when trying to delete those products move it give me error " You can not delete product moves if the picking is done. You can only correct the done quantities. " even though the status is showing as done.  

How can i delete these or what i am missing which i have to do "done" so that i can delete these. 

頭像
捨棄
最佳答案

Hi,

In short 
No, you can not!
You can't do the deletion of any record for which the stock.picking has been done or made a delivery order.

Because the corresponding stock move for the order will be created in the inventory.
you can delete the record directly from the database by using SQL query like,

DELETE FROM stock_move WHERE product_id=id;

here pass the id for which the product that you have created by mistake.

Regards

頭像
捨棄
最佳答案

Hi Jivendra

Odoo don't allow delete done product move you can fix with reverse move this is safest way.
If you want delete anyhow then you can delete from direct database in this action delete carefull otherwise that make other inventory issue.

Check related here:
https://www.odoo.com/forum/help-1/how-to-delete-the-stock-moves-when-they-are-in-done-state-5122

頭像
捨棄