OdooWiki OCA HUB

MRP Production Unique Lot

mrp_production_unique_lot folder_open OCA/manufacture open_in_new
Manufacturing License: AGPL-3

This module enforces that each Manufacturing Order (MO) has a unique lot number for its finished products.

A lot generated by one MO cannot be reused in another MO, and this constraint is applied when validating the production.

Additionally, to improve user usability, the domain of the lot_producing_id field has been updated to ensure only lot numbers that have not been used are selectable, only in case the product is tracked by lots.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Prevents reusing a finished-product lot number across manufacturing orders. You enable it per operation type, and Odoo blocks validation if the lot was already produced.

This module adds an option on manufacturing operation types so that each manufacturing order must use a unique lot number for its finished product.

  • On the operation type form (the screen where you configure manufacturing steps), a new checkbox "Force production lot uniqueness" appears. When ticked, every manufacturing order using that operation type follows the rule.
  • On a manufacturing order, the lot number field only offers lot numbers that have not already been produced for that product and company, so users cannot pick a used one by mistake. This filtering applies when the product is tracked by lots.
  • When you try to validate the manufacturing order, Odoo checks the finished-product lot and any byproduct lots. If a lot was already produced in another order, validation is stopped with an error message naming the product or byproduct.
  • The check ignores lots that were unbuilt or scrapped and later restored, so those cases do not wrongly block production.

The module extends mrp.production and stock.picking.type. It does not add new menus or reports; it changes the manufacturing order form and the operation type form.

Depends on

mrp
Models and fields (2)
  • mrp.production · extends an existing modelforce_lot_uniqueness, allowed_lot_producing_ids (Allowed Lot/Serial Numbers)
  • stock.picking.type · extends an existing modelforce_production_lot_uniqueness

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

Confirmed on 2026-11-03 in branch 16.0 of OCA/manufacture.

terminal Installation and usage

OCA documentation · Odoo 16.0
  • Configuring The Operation Type
  • Navigate to Inventory > Configuration > Operation Types.
  • Open the Manufacturing operation type.
  • Check the option 'Force Production Lot Uniqueness'.
  • Creating a Manufacturing Order
  • Create an MO for a product that is tracked by lots.
  • Assign an existing lot number for the finished product. This should be a lot number used on a done production.
  • Validating the Manufacturing Order
  • When you validate the MO, an error is thrown because the lot has already been produced.

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.