OdooWiki OCA HUB

Sale Order Line Initial Quantity

sale_order_line_initial_quantity folder_open OCA/sale-workflow open_in_new
Sales/Sales License: AGPL-3

This module allows to display the initial quantity when the quantity has been modified on the command line.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Shows the original ordered quantity on each sale order line once the order is confirmed, so you can compare it with the current quantity and see what was changed.

This module keeps a memory of the quantity that was originally ordered on each sale order line. When a sales order is confirmed, the quantity present at that moment is saved as the "Initial quantity" on every line.

On the sale order form, a new read-only column called "Initial quantity" appears in the order lines list. It is only shown when at least one line's current quantity differs from its saved initial quantity and the order is in a confirmed or done state; otherwise the column stays hidden to keep the screen clean.

A hidden indicator field on the order, "Initial Quantity Changed", is computed automatically. It becomes true when the order is confirmed or done and any line has a quantity different from its initial quantity. This is what controls the visibility of the column.

  • The module extends sale.order and sale.order.line.
  • It adds the stored field product_uom_initial_qty on order lines and the computed field initial_qty_changed on orders.
  • It overrides the order confirmation action to record the initial quantities.
  • It modifies the standard sale order form view to add the new column.

No new menus or reports are added; everything happens inside the existing Sales order screen.

Depends on

sale
Models and fields (2)
  • sale.order · extends an existing modelinitial_qty_changed (Initial Quantity Changed)
  • sale.order.line · extends an existing modelproduct_uom_initial_qty (Initial quantity)

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

Sources · Odoo 14.0

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

terminal Installation and usage

No verified information

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.

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.