Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3939 Widoki

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. 

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć