OdooWiki OCA HUB

Generate Barcodes for Partners

barcodes_generator_partner folder_open OCA/stock-logistics-barcode open_in_new
Tools License: AGPL-3

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

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 res.partner
  • 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)
  • automaticaly 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

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Lets users assign a barcode rule to a contact and generate an EAN13 barcode for that partner, either from a manually entered base or automatically from a sequence.

This module adds barcode generation to contact records in Odoo. On the partner form, next to the existing Barcode field, users in the barcode generation group see a Barcode Rule field where they can pick a rule that applies to partners.

Once a rule is chosen, a Barcode Base field appears. Depending on the rule's generation type, the base can be typed in manually or filled automatically: a "Generate Base (Using Sequence)" button is shown when the rule uses a sequence and the base is still zero. When a sequence is used, the Barcode field itself becomes read-only, because the value is produced by the rule.

A second button, "Generate Barcode (Using Barcode Rule)", becomes available once a rule and a non-zero base exist. It builds the final barcode from the rule's pattern and the base.

The module extends the barcode rule configuration so that rules can target Partners and can use a Client type. It also adds the barcode generation behaviour to the partner model (res.partner) and adds the new fields and buttons to the standard partner form view. Demo data shows a typical setup: an EAN13 rule starting with 042, linked to a sequence, producing a partner barcode.

Models and fields (2)
  • res.partner · new model
  • barcode.rule · extends an existing modeltype, generate_model

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-barcode.

terminal Installation and usage

OCA documentation · Odoo 12.0
  • 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 Customer/Contact form, Sales & Purchases Tab:

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)'

No verified information in OCA: Installation.

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.