Sale Line Refund To Invoice Qty
This module allows the user to choose whether refunded quantities in credit notes should be considered as quantities to be reinvoiced in the related sales, thus deciding if they should be added or not to the quantity to invoice of the related sales order line.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0This module lets you decide whether quantities refunded in a credit note should be considered as quantities to reinvoice on the related sales order. It adds a flag on credit notes and a company setting to control the default behaviour.
When you create a credit note (refund) from a sales order, you can now choose whether the refunded quantities should be added back to the quantity to invoice on the sales order line. This is controlled by a new flag called 'This credit note will be reinvoiced' that appears on the credit note form and in the credit note reversal wizard.
- On the credit note form, a new column 'sale_qty_to_reinvoice' is shown for customer refunds linked to sales orders. If checked, the refunded quantity is not considered as reinvoiceable, meaning it will not be added back to the quantity to invoice on the sales order line.
- In the credit note reversal wizard, the same flag is available with a default value taken from the company setting.
- A new company setting 'Reinvoice credit notes by default' (enabled by default) lets you set the default value for this flag on new credit notes.
- On the sales order line, a new computed field 'Quantity Refunded Not Invoiceable' shows the total quantity that has been refunded but not marked for reinvoicing. This field is hidden by default but can be added to the sales order form.
- The module modifies the computation of 'qty_invoiced' and 'qty_invoiced_posted' on sales order lines to include refunded quantities that are not marked for reinvoicing, so that the quantity to invoice is adjusted accordingly.
These changes affect sales orders, customer invoices, credit notes, and company settings.
Depends on
Required by other modules
Models and fields (6)
- res.company · extends an existing modelreinvoice_credit_note_default (Reinvoice credit notes by default)
- account.move · extends an existing model
- sale.order.line · extends an existing modelqty_refunded_not_invoiceable (Quantity Refunded Not Invoiceable)
- account.move.line · extends an existing modelsale_qty_to_reinvoice
- res.config.settings · extends an existing modelreinvoice_credit_note_default
- account.move.reversal · extends an existing modelsale_qty_to_reinvoice (This credit note will be reinvoiced)
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 5 confirmed, 4 with no information of 9 versions.
Sources · Odoo 14.0
Confirmed on 2026-11-03 in branch 14.0 of OCA/account-invoicing.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0When creating a credit note from an invoice, you can mark the checkbox "Not reinvoice refunded quantity" to prevent the refunded quantities to be deducted from the quantity invoiced of the related sales order lines.
Furthermore, after creating the credit note, you can mark the field "Sale qty not to reinvoice" to decide the criteria to be used for each specific invoice line.
Enabling the "Reinvoice credit note by default" flag in the Invoice settings, will enable the "This credit note will be reinvoiced" flag on Credit Notes by default.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.