OdooWiki OCA HUB

Sale Line Refund To Invoice Qty

sale_line_refund_to_invoice_qty folder_open OCA/account-invoicing open_in_new
Sales License: LGPL-3

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.0

This 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

sale_management
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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 5 confirmed, 4 with no information of 9 versions.

Sources · Odoo 13.0

Confirmed on 2026-11-03 in branch 13.0 of OCA/account-invoicing.

terminal Installation and usage

OCA documentation · Odoo 18.0

When 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.

info

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.