OdooWiki OCA HUB

MRP Product Lot Sequence

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

This module integrates Manufacturing Orders with product_lot_sequence.

It allows automatically generated lot and serial numbers in Manufacturing Orders to use the sequence configured on the product when the lot sequence policy is set to product.

If no product-specific sequence is configured, the standard Odoo lot generation behavior is used.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

When manufacturing a product that uses a product-specific lot sequence, Odoo now generates the lot or serial number from that sequence instead of the standard numbering.

This module changes how lot and serial numbers are created when you finish a manufacturing order.

  • If the lot numbering policy is set to "product" and the manufactured product has its own lot sequence configured, the number is taken from that product sequence.
  • If no product sequence is set, or the policy is not "product", Odoo keeps its normal lot generation behaviour.
  • If the policy is "product" and a sequence exists but no number can be produced, Odoo stops with an error asking you to set the first serial number or a default sequence.

The change applies to manufacturing orders (mrp.production) and affects the values used to create stock lots (stock.lot). It works together with the product lot sequence configuration on the product template. No new menus, buttons, or reports are added; the behaviour is automatic when manufacturing orders create lots or serial numbers.

Models and fields (1)
  • mrp.production · extends an existing model

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

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

terminal Installation and usage

OCA documentation · Odoo 17.0

To use this module, you need to:

  • Configure the product_lot_sequence.policy system parameter as product.
  • Configure a lot sequence on a product tracked by lots or serial numbers.
  • Create a Manufacturing Order for the product.
  • Generate the lot or serial number automatically from the Manufacturing Order.
  • Verify that the generated lot or serial number uses the sequence configured on the product.

If the product does not have a specific lot sequence configured, the standard Odoo lot generation behavior will be used.

When the lot sequence policy is set to global, the standard Odoo lot generation behavior is preserved.

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.