OdooWiki OCA HUB

MRP Auto Create Lot

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

This module extends the functionality of mrp module to allow auto create lots.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Automatically creates a lot/serial number for a work order when production is recorded, if the finished product is configured to auto-create lots.

When a user records production on a manufacturing work order, this module checks whether the finished product is set to create lots automatically. If it is and no final lot has been chosen yet, Odoo creates a new lot for that product and assigns it as the work order's final lot before the production is recorded.

This means shop-floor users do not have to manually enter or select a lot number when finishing a work order for products flagged for automatic lot creation. The lot is generated at the moment production is recorded, so the finished goods are traced without extra typing.

The module extends the manufacturing work order behaviour (mrp.workorder) and relies on the product setting that enables automatic lot creation, which comes from the stock picking auto-create lot functionality. It does not add new menus or screens; the change happens silently inside the existing "Record Production" action on a work order.

Business rules added: - A lot is created only if the product's auto-create lot option is enabled. - A lot is created only if the work order does not already have a final lot. - The newly created lot is set as the work order's final lot before the standard production recording continues.

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

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/manufacture.

terminal Installation and usage

OCA documentation · Odoo 12.0

To use this module you need to:

  • Go to a Product > Inventory tab.
  • Set a tracking option for this product.
  • Set auto create lot.
  • Go to Manufacturing > Manufacturing Orders and create or select one.
  • Create Workorders on this MO.
  • Done the Work Order of product with auto create lot.

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.