OdooWiki OCA HUB

Stock Picking Auto Create Lot Quantity

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

Add a unique lot sequence for lots being created for every company

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Automatically creates lot numbers in batches based on a quantity you define per product, and lets each company choose its own lot numbering sequence.

This module extends the automatic lot creation on receipts. On a product that is tracked by lot and has automatic lot creation enabled, you can now set a "Create lot every" quantity and choose a unit of measure for batching. When a receipt is validated, Odoo splits the received quantity into several lines, each one getting its own lot number, instead of creating a single lot for the whole quantity.

  • If the received quantity is not an exact multiple of the batch quantity, the remainder is still given its own lot, unless you tick "Only multiples allowed" on the product, in which case Odoo blocks the operation with an error.
  • The batch quantity and the "only multiples" option only appear for products tracked by lot with automatic lot creation turned on.

In Settings, under the stock lot options, each company can pick the sequence used to number new lots; the default is the standard production lot sequence. The module touches product.template, stock.picking, stock.lot, res.company and res.config.settings.

Models and fields (5)
  • stock.lot · extends an existing modelname
  • res.company · extends an existing modelstock_lot_serial_sequence_id
  • stock.picking · extends an existing model
  • product.template · extends an existing modelbatch_uom_id (Uom), create_lot_every_n (Create lot every), main_uom_category_id (UoM category), only_multiples_allowed (Only multiples allowed)
  • res.config.settings · extends an existing modelstock_lot_serial_sequence_id (Sequences)

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: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 16.0

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

terminal Installation and usage

OCA documentation · Odoo 16.0

To configure this module, you need to:

  • Go to Inventory > Master Data > Products, select a product.
  • Set 'Auto create lot' option, and set 'Create lot every' count of UoMs for the products you need.
  • Go the Settings > Inventory > Stock Serial Lot.
  • Press --> Sequences button to create/configure your lot sequence for a company in 'ir.sequence' module. The default sequence is 'stock.lot.serial'.
  • Once a sequence is created/updated select the stock lot sequence for the current company.

To use this module you need to:

  • Go to Inventory tab of a product.
  • Set a tracking option for this product.
  • Set 'Auto create lot'.
  • Go to Inventory > Incoming and create a new transfer.
  • Validate picking without lot.
  • If 'Only multiples allowed' has been selected in the product, picking validation will be blocked if qty received is not a multiple of the value set in the product.

Company sequence will be applied automatically on validating the lots based on the sequence selected in settings.

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.