# Generate Barcodes for Stock Locations

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

For example, a typical pattern for partners 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.location
- 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

Table of contents

- Configuration
- Usage
- Bug Tracker
- Credits
  - Authors
  - Contributors
  - Other credits
  - Maintainers

# Configuration

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

# Usage

To use this module, you need to:

- Go to a Stock Location 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)’

# 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

- LasLabs

## Contributors

- Dave Lasley <dave@laslabs.com>
- Tecnativa:
  - David Vidal
  - Ernesto Tejeda

## Other credits

- Icon of the module is based on the Oxygen Team work and is under LGPL licence: http://www.iconarchive.com/show/oxygen-icons-by-oxygen-icons.org.html

## Maintainers

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.

This module is part of the OCA/stock-logistics-barcode project on GitHub.

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