Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
5 Odpovědi
9295 Zobrazení

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

Avatar
Zrušit

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

Do you see unlock button on your delivery order?

Nejlepší odpověď

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
Zrušit

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

Autor Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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


Avatar
Zrušit

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.