Odoo Help


Cancel Sales Order after Delivered Items

tim diamond
on 9/19/13, 8:55 PM 16,500 views

Hi community, thank you in advance for any help suggestions in this questions.

As a company, we've started to implement openerp, and we have run into the following issue.

  1. We created a sales order, and confirmed it
  2. Opened delivery screen, and delivered all products to customer location.
  3. Our customer was not able to pay their bill
  4. Open delivery screen, clicked return products
  5. Products were successfully returned to inventory
  6. Attempt to cancel original delivery order (from which we have already returned products!) Could not, because "delivery lines were in "done" state"
  7. Attempt again to delete sales order. Could not, because delivery lines that are attached to that record are present.

Why can't delivery lines that are returned be deleted? Is this a bug?

This represents a problem for us. We often open the product screen, and click "Sales order lines" to view where/when we have sold a certain product. However, all the lines from our faulty sales order that we want to delete are showing up. Whats worse is that they are marked with a status of "Done" and not "Cancelled". But we never sold these products! They are back in our inventory.

I'm at a loss of what to do... If anyone has any suggestions for us, we would be gratefully appreciated. We just want to get rid of the sales order. Also, I should mention that we are NOT using the accounting module for our books, and thus don't really mind if what we need to do would throw off accounting..

Thank you very much,


Install sales order reopen if you are using V6 or V6.1 not sure about V7 but you should be able to do an item return

on 9/20/13, 8:54 AM

The problem with the item return, is that the items have been delivered. Then, I return these items, but the system does not match the "return" with the original stock moves. So the sales order still thinks it is connected to the original stock moves. I cannot change the status of the sales return.

tim diamond
on 9/20/13, 1:07 PM

do you have resolved this issue? I have the same problem...

Rove.design GmbH, Stefan Reisich
on 11/4/13, 8:22 AM

Can anyone please shed some light on this most basic problem? Plase upvote the question so it gets more attention...

Paul Catinean
on 11/13/13, 9:48 AM

odoo had very bad eCommerce & RMA system, also to upgrade feature for font-end it mean big cost. As many accepting it, too many rejecting odoo too, because of not only RMA critical features, but many bugs when such invoice or shipment cancelled. Also till multi-company rma or inveotry config getting suck. many issue with accounting till date.

on 4/13/15, 9:15 AM

why nobody know realy how to do this ... that is basic i also wanna know how to to this


Yassine TEIMI
On 1/16/15, 4:09 PM

I have the same problem, is anybody found a solution please ? thanks.

Paul Catinean
On 12/16/13, 5:09 AM

I think I have finally uncovered the solution behind this, first a launchpad link with a similar problem:


Create Invoice for Sales order and cancel it then either:
1. Leave in invoice exception
2. Ignore exception and have the sale order set to "Done"

On 5/11/17, 8:40 AM


Create Invoice for Sales order and cancel it then either:
1. Leave in invoice exception
2. Ignore exception and have the sale order set to "Done"

On 4/14/16, 1:12 PM

I have the same problem once you have transfered the products you cannot edit/change the delivery  "Stock picking" but in real world this happen frequently, customer can ask add or remove products from the order or simply cancel the order. Once you have generated the delivery you can only reverse the transfer and make a new sales order but the old sales order is in done state and you cannot cancel it. 

Keshav Gupta
On 3/21/14, 5:05 PM

I have found a temporary solution to this problem (i wanted to cancel the original delivered order in this twisted state)

  1. open the delivery orders from warehouse
  2. click on the particular delivery order
  3. click on a product from there
  4. open:internal moves window opens, click on the reference no. field (something like OUT/0005)
  5. then in this new window titled OUT/0005 open additional info and change the sales order to some dummy.
  6. and finally i was able to delete my original order!

I tried this method in v7 but the reference on the delivery order is still SO0XX so it refuses to delete because of this reference. Even when I deleted that reference from the stock moves.

Elephante, Sean Samborski
on 7/15/14, 4:44 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

10 follower(s)


Asked: 9/19/13, 8:55 PM
Seen: 16500 times
Last updated: 8/11/17, 11:47 AM