OdooWiki OCA HUB

Sale Force Invoiced Quantity

sale_force_invoiced_quantity folder_open OCA/sale-workflow open_in_new
sale License: AGPL-3

This module add a new "Force Invoiced" field to sales order lines. This field is used as modifier when computing quantity to be invoiced.

Current behaviour:

  • quantity to invoice = delivered - invoiced

and

  • quantity to invoice = product quantity - invoiced

Implemented behaviour:

  • quantity to invoice = delivered - invoiced - force invoiced quantity

and

  • quantity to invoice = product quantity - invoiced - force invoiced quantity

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds a "Force Invoiced" quantity field on sales order lines that is subtracted from the quantity and amount still to be invoiced, so users can manually reduce what Odoo proposes to invoice.

This module lets users manually reduce the quantity that Odoo still considers invoiceable on a sales order line. It adds a new numeric field, "Force Invoiced", on each order line, shown in the order lines list of the sales order form right after the invoiced quantity column. The column only appears when the order is confirmed or done.

The value entered is deducted from the quantity to invoice. For products invoiced on ordered quantities, the remaining quantity becomes ordered quantity minus already invoiced minus the forced quantity. For products invoiced on delivered quantities, it becomes delivered quantity minus already invoiced minus the forced quantity. The same deduction is applied to the untaxed amount still to invoice, which is recalculated from the line price, discount and taxes, net of what has already been invoiced.

  • The field is available on sale.order.line and the calculation is triggered whenever its value changes.
  • The recalculation only applies to confirmed or done order lines, and ignores section and note lines.
  • The remaining amount to invoice never goes below zero.

No new menus or reports are added; the change appears directly in the standard sales order screen. The module depends on sale_force_invoiced, which provides the order-level equivalent of this control.

Models and fields (1)
  • sale.order.line · extends an existing modelforce_invoiced_quantity

Text generated by AI (DeepSeek) from reading the Odoo 19.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: 4 confirmed, 5 with no information of 9 versions.

Sources · Odoo 17.0

Confirmed on 2026-11-03 in branch 17.0 of OCA/sale-workflow.

terminal Installation and usage

OCA documentation · Odoo 19.0

No configuration is required.

Open a sales order and add an amount into the "Force Invoiced Quantity" field. Amount to invoice will be adjusted accordingly. This field is optional so you can hide it if you don't need it.

No verified information in OCA: Installation.

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.