OdooWiki OCA HUB

Stock Picking Auto Create Lot

stock_picking_auto_create_lot folder_open OCA/stock-logistics-workflow open_in_new
stock License: AGPL-3

This module extends the functionality of stock module to allow auto create lots for incoming pickings.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Automatically generates lot or serial numbers for incoming stock transfers, so warehouse staff don't have to type them manually. You enable it per product and per operation type.

This module adds an automatic lot/serial number creation option to Odoo's inventory workflow.

  • On a product form, a new checkbox "Auto Create Lot" appears next to the tracking setting, but only when the product is tracked by lot or serial number.
  • On an operation type (for example Receipts), a new "Auto Create Lot" checkbox appears next to the existing lots setting.

When both the product and the operation type have this option enabled, Odoo fills in the lot or serial number automatically on the transfer lines when the transfer is validated. The number is taken from the standard lot/serial number sequence, so each line gets the next available reference.

Because the number is filled in automatically, the manual "Assign Serial Numbers" action is hidden for those moves, avoiding double entry. Also, when quantities are reserved, lines that already have a lot assigned get their quantity set to the full reserved quantity.

The automatic numbering runs both when the user clicks Validate and when the transfer is completed internally, so it also works for transfers finished by other processes. The module touches product.template, stock.picking.type, stock.picking, stock.move and stock.move.line.

Depends on

stock
Models and fields (5)
  • stock.move · extends an existing model
  • stock.picking · extends an existing model
  • stock.move.line · extends an existing model
  • product.template · extends an existing modelauto_create_lot
  • stock.picking.type · extends an existing modelauto_create_lot

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

Sources · Odoo 19.0

Confirmed on 2026-11-03 in branch 19.0 of OCA/stock-logistics-workflow.

terminal Installation and usage

OCA documentation · Odoo 19.0

To configure this module, you need to:

  • Go to a Inventory \> Configuration \> Operation Types.
  • Set 'auto create lot' option for this operation type.
  • Go to a Inventory \> Master Data \> Products.
  • Set 'auto create lot' option for the products you need.

To use this module you need to:

  • Go to a Product \> General Information tab.
  • Set a tracking option for this product.
  • Set auto create lot.
  • Go to Inventory \> Incoming and create one.
  • Validate picking without lot.

No verified information in OCA: Installation.

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.