Skip to Content
Menu
This question has been flagged
5 Replies
8236 Views

I hit unreserve on a delivery order and the whole order was cancelled.  How can I reinstate this order?

Avatar
Discard

Could you write steps, which followed and your order was canceled?

Do you see unlock button on your delivery order?

Best Answer

Hi,

What you can do is that, just open the canceled delivery order and click on Action -> Duplicate ,

On doing this you will get a duplicate copy of the delivery order which is in not in cancel state and rest of the operations can be done on this delivery order.

Otherwise , if you generate the delivery order from sales and  if you didn't create any invoice against it. Just cancel the sale , by clicking the cancel button.



After cancelling the sale,  click on the set to quotation button and confirm the sale, now you will get a new delivery order.

Thanks

Avatar
Discard

+ 1 for the 'duplicate' method if you already created the invoice, and hence can't cancel the sale.

Author Best Answer

I can't respond to you Anil because of this stupid karma system - so I'll write an answer in response.  Steps to reproduce - I clicked on Unreserve.  Then the order was set as cancelled and I could not make any other modifications.


I do not see unluck in the delivery order.


Avatar
Discard
Best Answer

Technically you can access your stock.picking table via pgadmin and change the state field value "cancel" to "draft".


Avatar
Discard

If anyone reads this old thread : I would not do that. State is a computed field in the stock.picking model. It depends on move_lines.state among other fields. Moreover the 'Cancel' action on stock.picking does not simply change child stock.moves states, it also triggers actions like canceling reservations... Business logic is not executed when you modify the database without using Odoo models.