Skip to main content
Odoo Community Association

Product Lot Sequence

Beta License: AGPL-3 OCA/product-attribute Translate me on Weblate Try me on Runboat

Adds ability to define a lot sequence from the product which will be proposed upon creating new lots.

Table of contents

Configuration

Lot Sequence policy

There are two ways you can configure this module through the use of System Parameter `product_lot_sequence.policy`:

  • “product”: This is the default behaviour once you install this module. It’s the same than in previous Odoo versions with this module installed, i.e. it allows to define a dedicated sequence on each product.

  • “global”: This was the default behaviour from previous Odoo versions when this module was not installed, i.e it will always use the same global sequence for every product.

If any other value is used for this System Parameter, then you will get the default behaviour from odoo 15.0 which will look for the last lot number for each product and will increment it.

Automatic product sequence creation

System Parameter product_lot_sequence.auto_create, default “True”.

When enabled, a product sequence is created automatically for products tracked by lot or serial number. Set it to “False” to create product sequences manually from the product form. Products without a product sequence use Odoo’s standard lot and serial numbering.

Default Number of Digits for Product Sequence Generation

The default is 7 digits. To change that to something else, go to the inventory configuration, find “Sequence Number of Digits” and change the number.

Usage

To use this module:

  • Go to Inventory > Products

  • Under the inventory tab when tracking set to lots 4 new fields will be displayed

  • If a sequence is not selected, a new one using the prefix, padding and next number fields, will be created

  • Go to Inventory > Lot/Serial Numbers

  • Create new Lot/Serial number

  • Select the product and the next number of the product sequence will be automatically proposed

Known issues / Roadmap

  • There is an issue with the use of ir.sequence with the newer version of Odoo.

Mostly, when opening the detailed operations of an assigned picking for a product tracked by serial numbers, Odoo systematically calls _get_next_serial even if there is not any serial number to generate. Moreover, the widget allowing to generate the serial numbers will not call the sequence but only increment the number according to the next serial, potentially leading to a sequence that is not in sync anymore with the created serial numbers.

cf https://github.com/OCA/product-attribute/issues/1326

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • ForgeFlow S.L.

Contributors

Other credits

The migration of this module from 17.0 to 18.0 was financially supported by Camptocamp.

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainers:

rafaelbn chienandalu

This module is part of the OCA/product-attribute project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Metadata

Release files for odoo-addon-product-lot-sequence 18.0.2.0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo-addon-product-lot-sequence 18.0.2.0.0.1
File Interpreter ABI Platform Actions
odoo_addon_product_lot_sequence-18.0.2.0.0.1-py3-none-any.whl Python 3 none any Details for odoo_addon_product_lot_sequence-18.0.2.0.0.1-py3-none-any.whl

Release files / odoo_addon_product_lot_sequence-18.0.2.0.0.1-py3-none-any.whl

Download URL odoo_addon_product_lot_sequence-18.0.2.0.0.1-py3-none-any.whl
Size 46.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f04714e9eeee2b9ca2d15e793a0da5981076983ebe2fc6884c328608fa8d712
BLAKE2b-256 checksum
How to use checksums
8fc686ddd8c00d9a87f020605fbf6b6c0192c9f6259980a5bde1c6e3ad1f9db8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for odoo-addon-product-lot-sequence 18.0.2.0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

18.0.2.0.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page