OdooWiki OCA HUB

Sale Order Line Serial Unique

sale_order_line_serial_unique folder_open OCA/sale-workflow open_in_new
Uncategorised License: AGPL-3

This module allows to restrict selling more than one product per line if product is managed per serial number.

This could be necessary in some flows were stock moves should be unique per sale order line and per serial number.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Prevents selling more than one unit of a serial-tracked product on a single sale order line. If a product is managed by serial number, the quantity on the line must be exactly 1.

This module adds a validation rule to sale order lines. When a product is tracked by serial number, the quantity on the line cannot be different from 1. If a user tries to set a quantity other than 1, Odoo shows an error message and blocks the change.

The rule is applied automatically whenever the quantity or the product's tracking setting changes. It uses the product's unit of measure rounding to compare the quantity, so it works correctly with different units of measure.

This affects the sale.order.line model, which is used in sales orders and quotations. The module also adds a stored related field product_tracking on the sale order line, which mirrors the tracking setting of the product. This field is used internally for the check and is not directly visible to users unless added to a view.

No new menus, buttons, or reports are added. The change is purely a validation constraint that ensures each sale order line for a serial-tracked product contains exactly one unit. This is useful when stock moves should be unique per sale order line and per serial number.

Depends on

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

Text generated by AI (DeepSeek) from reading the Odoo 12.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 12.0

Confirmed on 2026-11-03 in branch 12.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.