OdooWiki OCA HUB

Stock Serial Number Batch

stock_serial_batch_receive folder_open OCA/stock-logistics-warehouse open_in_new
Stock License: AGPL-3

This module allows to generate automatically serial numbers on stock move lines. On v13 there will be support of serial numbers generation, but this implementation is better as it supports multi company and provide more flexibility for customization.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Adds a "Generate serial numbers" button on stock move operations that opens a wizard to fill serial numbers in bulk on move lines that don't have one yet.

When a stock move is tracked by serial number, a new "Generate serial numbers" button appears on the move operations screen. Clicking it opens a small wizard where the user enters how many serial numbers to process and the first number of the sequence.

The wizard automatically pre-fills the quantity with the number of move lines that still have no serial number. It then generates consecutive numbers starting from the first number entered and assigns them to those lines.

Business rules enforced by the module: - Only numeric values are accepted as the first number. - The quantity to process cannot exceed the number of move lines still missing a serial number. - If the operation type is configured to create new lots/serials, the generated numbers must not already exist on the product; otherwise an error lists the duplicates. - If the operation type is not configured to create lots, the generated numbers must already exist as serial numbers for the product; otherwise an error lists the missing ones.

After generation, the user is returned to the move details. The module touches stock.move, stock.move.line and stock.production.lot, and adds a new wizard model stock.move.line.serial.generator.

Depends on

stock
Models and fields (2)
  • stock.move · extends an existing modelpicking_type_create_lots
  • stock.move.line.serial.generator · new modelproduct_id, first_number, stock_move_id, qty_to_process, picking_type_create_lots

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/stock-logistics-warehouse.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

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.