Skip to main content

Generate Barcodes for Stock Production Lots

Project description

License: AGPL-3

Generate Barcodes for Stock Production Lots

This module expands Odoo functionality, allowing user to generate barcode depending on a given barcode rule for Stock Production Lots.

The barcode will be used as the name of the lot, which effectively allows this module to create automatic serialization rules for production lots.

For example, a typical pattern for production lots is “042………” that means that: * the EAN13 code will begin by ‘042’ * followed by 0 digits (named Barcode Base in this module) * a 13 digit control

With this module, it is possible to:

  • Assign a pattern (barcode.rule) to a stock.production.lot

  • Define a Barcode base:
    • manually, if the base of the barcode must be set by a user. (typically an internal code defined in your company)

    • automatically by a sequence, if you want to let Odoo to increment a sequence. (typical case of a customer number incrementation)

  • Generate a barcode, based on the defined pattern and the barcode base


To configure this module, see the ‘Configuration’ Section of the description of the module ‘barcodes_generator_abstract’


To use this module, you need to:

  • Go to a Picking form:

1 for manual generation
  • Set a Barcode Rule

  • Set a Barcode Base

  • click on the button ‘Generate Barcode (Using Barcode Rule)’

2 for automatic generation
  • Set a Barcode Rule

  • click on the button ‘Generate Base (Using Sequence)’

  • click on the button ‘Generate Barcode (Using Barcode Rule)’


Try this module on Runbot

Try me on Runbot

Known issues / Roadmap

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 smash it by providing detailed and welcomed feedback.





Odoo Community Association

This module is maintained by the OCA.

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.

To contribute to this module, please visit

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page