How to make GS1 QR codes for your Odoo products
Every label you print without a GS1 QR code misses the move to 2D barcodes at checkout. In Odoo, your GTIN already sits in the Barcode field of each variant. This guide shows how to export it and get a barcode and QR code for every product from one upload.
DLCode · Updated · 6 min read
Your GTIN goes in the Barcode field
Odoo stores the GTIN in the Barcode field. A GTIN is the number printed under your UPC or EAN barcode.
Open a product and go to the General Information tab. The Barcode field sits below Category. Enter the number with all its digits, including any leading zero.
The Barcode field belongs to each variant. On the product form, it shows only when the product has one variant. A product with sizes or flavors has a barcode on each variant.
Odoo does not let two products in the same company share a barcode. If you enter a number that is already in use, Odoo names the product that has it.
Give each variant its own barcode
Every size, flavor or color you sell needs its own GTIN. The variant pages are where you enter them.
- Turn on variants if you have not. Go to Sales, then Configuration, then Settings. Under Product Catalog, tick Variants and click Save.
- Go to Sales, then Products, then Product Variants.
- Open a variant. Its variant values show under the name.
- On the General Information tab, enter the GTIN in the Barcode field. The Internal Reference field above it is for your own SKU.
- Save, then repeat for each variant.
Get your GTINs from GS1. Retailers and marketplaces check numbers against the GS1 database. See How to get a GTIN for your products in the US.
Export your variants from Odoo
Export the Product Variants list, so you get one row for each barcode. The Products list gives one row for each product and leaves out variant barcodes. The Product Variants menu shows once Variants is turned on.
- Go to Sales, then Products, then Product Variants.
- Switch to the list view.
- Tick the checkbox next to each variant you want to export.
- Click Action, then Export.
- Untick I want to update data (import-compatible export). The file then has readable column names.
- Add these fields to the Fields to export list: Name, Variant Values, Internal Reference, Barcode and Website URL.
- Choose CSV as the format and click Export.
The Website URL field comes from the Odoo eCommerce app. Without that app, leave it out and add links in DLCode later.
Your file has a header row like this one.
Name,Variant Values,Internal Reference,Barcode,Website URLUpload the file and get your print files
DLCode reads the Barcode column of your Odoo file. Each row with a barcode becomes a product. Rows with no barcode are skipped.
- Sign in to DLCode and go to Import.
- Choose your CSV file.
- Enter your store address, such as https://yourbrand.com.
- Click Import, then check the rows DLCode flags.
DLCode names each product from the Name and Variant Values columns. It checks each barcode for a valid GTIN, and lists the rows that fail.
Each product gets a print file with its barcode and GS1 QR code side by side. Files come as SVG, PDF and EPS, with no watermark.
Each scan opens the product page
A GS1 QR code holds a web address with the GTIN in it. A checkout scanner that reads 2D barcodes takes the GTIN from the code. A phone opens the address.
The address has your domain, then /01/, then the 14-digit GTIN. The EAN 9520123456788 becomes https://qr.yourbrand.com/01/09520123456788.
DLCode sends each scan to the page from the Website URL column. Odoo gives that column as a path, such as /shop/oat-bar-9. DLCode adds your store address in front of it.
For a variant, Odoo adds #attribute_values= and the IDs of its values to the end of the link. The shop page reads them and opens with that size or flavor selected.
You can change where a code goes at any time in DLCode. The printed code stays the same.
What Sunrise 2027 means for your Odoo store
GS1 aims for retail checkouts worldwide to read the GTIN from 2D barcodes, as well as from the UPC or EAN, by the end of 2027. GS1 US calls this transition Sunrise 2027. Packaging you print now will still be on shelves then. Add the QR code on this run and you skip the reprint.
You keep your UPC or EAN and print the GS1 QR code next to it. During the transition, GS1 guidance puts both symbols on the pack, with the QR code within 50 mm of the barcode's center.
Your Odoo barcodes stay as they are. The QR code uses the same GTIN. See Sunrise 2027: how to add a GS1 Digital Link QR code to your packaging.
Recall a lot from Odoo
If you track lots in Odoo, the free DLCode Lot Recalls module adds a Recalled checkbox and a note for shoppers to each lot form. Tick it and save, and people who scan that lot see your notice. It works with Odoo 17.0 and 18.0 and needs a paid pack. See Sync lot recalls from Odoo to your GS1 QR codes.
Get it done this week with DLCode
Upload one Odoo export and download a barcode and GS1 QR code for every variant today.
- DLCode reads the Barcode column and names each product from Name and Variant Values.
- With Odoo eCommerce, each code opens the shop page with the right size or flavor already selected.
- Every barcode is checked for a valid GTIN, and failing rows are listed for you to fix.
- Change where a code goes any time with no reprint. Packs add lot codes, batch recalls, country pages and a free domain.
Start free for 10 products, with no card. When you need more, pay once: $249 for 25 products, $499 for 100, or $1,490 for 1,000. Hosting and unlimited scans are included through December 31, 2030. No subscription.
Get your Odoo products ready for 2D checkouts now. Start free, or see pricing. More on the import: DLCode for Odoo.
Checklist
- Turn on variants in Odoo if you sell sizes or flavors.
- Enter a GS1 GTIN in the Barcode field of each variant.
- Export Product Variants as CSV with Name, Variant Values, Internal Reference, Barcode and Website URL.
- Upload the file to DLCode and enter your store address.
- Fix the rows DLCode flags.
- Download the print files and place them on your packaging. See Print specs for a QR code next to your UPC or EAN.
- Print a proof and scan it with more than one phone.
Sources
- Export and import data · Odoo Documentation
- Product variants · Odoo Documentation
- product_product.py (Odoo 18.0) · Odoo on GitHub
- product_product.py, Website Sale (Odoo 18.0) · Odoo on GitHub
- Sunrise 2027 · GS1 US
- product_views.xml (Odoo 18.0) · Odoo on GitHub
- product_template_views.xml (Odoo 18.0) · Odoo on GitHub
- website_sale.js (Odoo 18.0) · Odoo on GitHub
- GS1 Guidelines for 2D barcodes in retail · GS1
- GS1 Digital Link URI syntax · GS1
Get your QR code
Get a print-ready file with your barcode and a GS1 Digital Link QR code side by side. 10 products free, and pack features free for 30 days. No card. Then pay once from $249.