product_lot_sequence
Allow defining per-product lot and serial number sequences that are proposed automatically when creating new lots.
Key Features
- inventory configuration: System parameter product_lot_sequence.policy lets you choose per-product sequences, a single global sequence, or Odoo’s native per-product incrementing behavior
- product.template: Stores a dedicated lot sequence with prefix, padding, and next number fields, creating or updating the sequence automatically when lot/serial tracking is enabled
- stock.lot: On product change or creation, proposes the next lot/serial number from the product sequence when the policy is product, otherwise uses the global sequence or default logic
- res.company: Holds the default lot sequence padding (number of digits) used when creating product-specific sequences
- res.config.settings: Exposes the company lot sequence padding so it can be configured from the settings UI
- stock.move: Prevents double-incrementing lot sequences when opening detailed operations by reusing or skipping the next serial number as needed