OdooWiki OCA HUB

Product GTIN EAN8 EAN13 UPC JPC Support

product_gtin folder_open OCA/stock-logistics-barcode open_in_new
Sales Management License: AGPL-3

Replaces the EAN13 field on products, partners and packaging by a field with the same technical name that accepts EAN13, EAN8, JPC, UPC and GTIN.

auto_awesome What this module does

AI-generated from the code · Odoo 13.0

Adds optional validation of product barcodes so that EAN8, ISBN10, UPC and EAN13 codes are checked for correct format before being saved. Administrators choose which barcode types to validate in the product settings.

This module lets you control the quality of the barcodes stored on products. In the product settings screen, four new checkboxes appear: EAN8, ISBN10, UPC and EAN13. Each one is off by default, so nothing changes until you turn it on.

Once a barcode type is enabled, Odoo checks every barcode saved on a product. The check looks at the number of digits: 8 digits are treated as EAN8, 10 as ISBN10, 12 as UPC and 13 as EAN13. If the code does not match the expected format for that length, Odoo refuses to save it and shows the message "EAN/GTIN format is not a valid format".

  • The validation is applied on product.product records through the barcode field.
  • The settings are stored per company on res.company and edited through res.config.settings.
  • The checkboxes are added inside the existing Product settings page, in a new section.

Barcodes with other lengths are not checked. The module depends on the external Python library barcodenumber to perform the format verification.

Depends on

product
Models and fields (4)
  • res.company · extends an existing modelcheck_code_type_upc, check_code_type_ean8, check_code_type_ean13, check_code_type_isbn10
  • product.product · new model
  • res.config.settings · extends an existing modelcheck_code_type_upc (Check code type Upc), check_code_type_ean8 (Check code type Ean8), check_code_type_ean13 (Check code type Ean13), check_code_type_isbn10 (Check code type Isbn10)
  • barcode.gtin_check.mixin · new model

Text generated by AI (DeepSeek) from reading the Odoo 13.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 13.0

Confirmed on 2026-11-03 in branch 13.0 of OCA/stock-logistics-barcode.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

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.