Skip to Content

Two Invoices, One Payment in Odoo 19? How to Read the Ledger After a Replaced Web Order

A customer pays online, the item is out of stock, and the order is replaced with a substitute. Now finance sees two invoices, a credit note and only one payment. In most cases Odoo is right. Here is how to read it, and how to close it out cleanly.
November 26, 2026 by
Two Invoices, One Payment in Odoo 19? How to Read the Ledger After a Replaced Web Order

A customer pays online, the item is out of stock, and the order is replaced with a substitute. Now finance sees two invoices, a credit note and only one payment. In most cases Odoo is right. Here is how to read it, and how to close it out cleanly.

On a recent project, an online shop in Oman had a familiar month-end question. A customer had paid for a web order, but the item was out of stock. The team cancelled the order, created a new one for a substitute, issued a credit note on the first invoice and invoiced the new order. The customer's account then showed two invoices and one payment, and the payment was still sitting on the cancelled order.

The first instinct was to "fix" it: move the payment, delete something, or post a second payment. None of that was needed. The documents were correct. They only needed to be matched.

This note describes standard Odoo 19 Sales, Invoicing and Inventory behaviour. We reproduced each step on an Odoo 19 test database. Custom modules, payment providers or your own settings can change the details, so try any change on a copy of your database first. All amounts below are example figures only.

What Odoo actually did, step by step

Take an example: the first order is 100.000 OMR, the substitute is 120.000 OMR.

  1. The customer paid the first order. Invoice 1 (100.000) is posted and matched with the payment, so it shows Paid.
  2. The sales order was cancelled. Cancelling a sales order in Odoo 19 only cancels invoices that are still in draft. A posted invoice stays posted, and Invoice 1 is still Paid.
  3. A credit note was issued on Invoice 1. From the invoice, Credit Note then Reverse creates a draft credit note. Once you Confirm it, it sits on the customer's account as an open credit of 100.000. Invoice 1 still shows Paid, because the payment is still matched to it.
  4. The substitute was invoiced. Invoice 2 (120.000) is a separate document, linked to the new order, and it is open.

Now read the customer's account as a whole:

  • Invoice 1: +100.000
  • Payment: −100.000
  • Credit note: −100.000
  • Invoice 2: +120.000

Net balance: 20.000 owed by the customer, which is exactly the price difference. The "missing" payment is not missing. The credit note is doing its job; it just hasn't been used yet.

Close it out in three steps (dearer substitute)

  1. Open Invoice 2. Under Outstanding credits you will see the credit note. Click Add next to it.
  2. Invoice 2 is now partly paid, with 20.000 left to collect.
  3. When the customer pays the difference, register it with Pay on Invoice 2. The account is now at zero.

What not to do:

  • Don't register a second full payment against Invoice 2. You would be recording money you never received.
  • Don't delete or cancel the credit note to "tidy up". It is the document that cancels Invoice 1.
  • Don't try to move the payment from Invoice 1 to Invoice 2. Using the credit note gives the same result and keeps a clear trail for your auditor.

When the substitute is cheaper

Say the substitute is 80.000 instead.

  1. On Invoice 2, Add the credit note from Outstanding credits. The invoice is fully covered.
  2. Don't be surprised if Odoo shows Invoice 2 as Reversed rather than Paid. Odoo uses that status when an invoice is settled only by credit notes. It is normal.
  3. The credit note still has 20.000 open. That is what you owe the customer.
  4. When you refund them, open the credit note and click Pay. Odoo creates an outgoing payment for 20.000, and the customer's account is back to zero.

If the customer prefers to keep the 20.000 as credit for a future order, leave it open and apply it to the next invoice the same way. Just make sure someone owns that decision, so it doesn't sit forgotten in the aged receivable.

Before the invoice is posted: edit the order instead

The cleanest fix is to avoid the second order altogether. If the first order has not been invoiced yet, change it rather than cancelling it.

There is one catch. With Inventory installed, once the order is confirmed and a delivery exists, Odoo won't let you change the product on the line. You will see "You cannot modify the product of this order line."

What works instead (we tested it on Odoo 19):

  1. Set the quantity of the out-of-stock line to 0.
  2. Add a new line for the substitute.
  3. Save. Odoo cancels the delivery move for the original item and adds the substitute to the delivery.
  4. Create the invoice. It contains only the substitute.

If the customer already paid online, that payment appears under Outstanding credits on the new invoice. Click Add, then collect or refund the difference.

If your company uses Lock Confirmed Sales (Sales settings), unlock the order first.

What about "Reverse and Create Invoice"?

The credit note wizard also has a Reverse and Create Invoice button. We tested it on a paid invoice: Odoo posts a credit note matched to the original invoice, releases the payment back to the customer's account as open credit, and creates a draft copy of the invoice linked to the original order.

That is handy when you need to correct an invoice for the same order. For a product swap with a new sales order, the plain credit note plus an invoice from the new order keeps each order tied to its own invoice, which is easier to follow later.

Add it to your month-end checklist

Before you close the month, open the Partner Ledger or the Aged Receivable and look for customers who have an open credit note and an open invoice side by side. Match them before you lock the period. It is a five-minute check, and it stops your receivables looking higher (or lower) than they really are.

For the rest of the close, see our Odoo month-end closing checklist. If payments are not reducing receivables at all, read customer advances and receivables in Odoo 19. For chasing what is really overdue, see Odoo credit control for Oman businesses, and if you sell online, launching an e-commerce store in Oman with Odoo 19.

Want a second pair of eyes?

If your customer ledger is full of credit notes and payments that don't seem to line up, I can go through it with you and show what needs matching and what is already right. See how I work on Odoo implementation in Oman, or book a free 30-minute review.

Related guides

Book a Free 30-Minute Odoo Review

We can go through your customer ledger together and match what needs matching.

Book your free review

"Sold Below Cost" in Odoo 19? Check the Carton Before You Raise the Price
Your margin report says some products are sold at a loss, but the prices look fine. Very often the cost Odoo is using belongs to the whole carton, not to the piece you sell. Here is how to spot it in Odoo 19 and two clean ways to fix it.
WhatsApp Me