Multiple Barcodes per Product: find products by extra EAN and UPC codes
by Aerya IT Solutions https://aerya.net$ 9.86
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
Multiple Barcodes per Product: find products by extra EAN and UPC codes
The same bottle comes with the EAN of two suppliers, the old label is still on the shelf and the US version carries a UPC: give the product all its barcodes and any of them finds it.
Extra barcodes for packagings too
Found in searches, order lines and the Point of Sale
Unique across all main and extra barcodes
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
Screenshots of Odoo 17 Enterprise with the data of a fictitious company.
on Odoo 18
no warnings
The problem
A product has one barcode field. In real stock, the same bottle arrives with the EAN of two suppliers, the old label is still on half of the shelf, and the version sold in the United States carries a UPC. Whichever code you keep in the field, the others give "no product found" at the scanner and in the search.
The usual workaround is to keep the other codes in the internal notes, where nothing searches them.
What the module does
It lets a product, a variant or a packaging carry as many extra barcodes as you need, each with a note that says where it comes from. Every search on a barcode finds the extra ones too: the product list and its search, the product field of sales, purchase, invoice and transfer lines (type or scan the code), and the Point of Sale, where a scanned extra barcode adds the product.
How it works, step by step
- Install. The module depends on Products only.
- Open a product. On the product form, open the new "Barcodes" tab.
- Add the extra barcodes. One row per barcode, with a note (supplier code, old label, UPC of the US version). On a product with variants, a Variant column says which variant the code belongs to.
- Add barcodes to a packaging. On the packaging form, the "Extra barcodes" list works the same way. They stand for the packaging, like its main barcode.
- Scan or type. Use any of the codes in a search, on an order line or at the scanner: Odoo finds the product.
A Barcodes tab on the product
A note for each code
The note records where the barcode comes from: a supplier, an old label, a regional version. The rows can be reordered.
A barcode is accepted once: as the main barcode of a product or a packaging, or as an extra one. Odoo tells you which product or packaging already uses it.

Found wherever Odoo looks for a barcode
In searches, order lines and at the till
Type or scan an extra barcode in the product search, in the product field of a quotation, a purchase order, an invoice or a transfer: the product comes up.
The Point of Sale finds it when you scan it. Who may change products may change their barcodes; everyone else reads them.

Packagings
Extra barcodes on a box
An extra barcode of a packaging finds the packaging's product in searches and on lines, like its main barcode.
In the Point of Sale, an extra barcode of a packaging adds one unit. The main barcode of the packaging adds the packaging quantity.

What it does not do
- The Barcode app of Odoo Enterprise reads its own cache by the main barcode only, so it does not use the extra ones.
- GS1 barcodes with embedded data (lot, weight) use the main barcode.
- In the Point of Sale, an extra barcode of a packaging adds one unit.
- It is published for Odoo 17 and 18 only: from Odoo 19 a product has several barcodes per unit in Odoo itself.
Requirements
| Odoo versions | 17 and 18 |
| Editions | Community and Enterprise |
| Odoo apps | Products (product) |
| Modules of ours | None |
| Languages | English, Spanish and Romanian |
Questions
Is there a limit to the number of barcodes?
No. Add as many rows as you need to each product or packaging.
Can two products share a barcode?
No. A barcode is unique across the main and extra barcodes of products and packagings.
Does the Point of Sale need the module on the register?
No. The till finds an unknown scanned code through the server, which also looks in the extra barcodes.
Who can edit the barcodes?
Whoever may change products. The same access rights apply.
What about Odoo 19 and 20?
Odoo itself gives a product several barcodes per unit there, so the module is not needed.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 18, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Aerya IT Solutions · Developed in the European Union · aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 266 |
| Technical Name |
aerya_product_multi_barcode |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module