Barcode warehouse on Odoo: labels straight to a thermal printer
Odoo Community has barcode fields and ZPL label reports. The scan app and the printer link are Enterprise. How one plant scans and prints ZPL or TSPL labels for US$0 in licence fees.
In short. Odoo Community stores barcodes and has label reports in ZPL. The scan app (Barcode) and the printer link (IoT) are in Odoo Enterprise. In Community, a ZPL label comes to the browser as a text file. Case 01 uses a scan app on Community, in place of the Enterprise Barcode app. It sends each label straight to a network thermal printer, for US$0 in licence fees.
Plant and warehouse managers ask for two things. Each pallet, roll or carton must carry a label, and each move must be one scan. A vendor answers that the ERP has a barcode field. That is not yet a worker who scans, and a label that comes out at the station. This article shows the parts between the two, for Odoo.
What does a factory need for a barcode warehouse?
A factory needs five parts. The barcode field is only the first.
- An identifier for each product, lot, bundle, pallet and location.
- A label that comes out where the unit is made or received.
- A scan screen for each station, with only the work of that station.
- A path from the ERP to the printer, with no print dialog.
- Rules that refuse a wrong scan at once.
What do you put in a barcode?
Put an identifier in the barcode, not the data. The ERP holds the data, and the scan finds the record. The quantity, the product and the date are text on the label, for people. If the quantity changes later, the code is still correct.
A linear (1D) barcode uses lines and spaces of different widths. A 2D barcode, such as a QR code, holds more data in a smaller area. A short identifier fits in a 1D code such as Code 128.
In Odoo, a lot identifies a batch, and a package identifies a physical unit such as a pallet. Odoo accepts any text as a barcode, so an internal code is enough inside the plant.
Use GS1 when a customer or a carrier demands a standard. GS1 application identifiers are prefixes that define the meaning and the format of each data field. The Serial Shipping Container Code (SSCC) identifies a logistic unit, for example a case, a pallet or a parcel.
Example (made up): the barcode holds PAL-000482. The text beside it says "24 cartons, packed on 12 March".
What does standard Odoo give?
Odoo Community gives the barcode fields, a scan service and label reports in ZPL. The scan app and the printer link are in Odoo Enterprise.
- In Community. The Barcode module scans and parses barcodes, and a second module parses GS1-128 codes. A command barcode can click a button on a form. The ZPL reports print a product, a lot or serial number, a package, a packaging and an operation type. Odoo designs them for a label of four by six inches.
- In Enterprise. The Barcode app tracks inventory moves by scan. In the Community Inventory settings, the Barcode option is an upgrade to Enterprise. The IoT app is Enterprise too.
- The path to the printer. In Community, the browser downloads a ZPL report as a .txt file. Standard Community does not send it to the printer. The Odoo documentation says that only an IoT system connects a printer directly to the database. An IoT system in production use needs the IoT app and a subscription.
What are ZPL and TSPL?
ZPL and TSPL are command languages for thermal label printers. The ERP sends plain text, and the printer draws the label.
- ZPL is the Zebra Programming Language. A label format starts with
^XAand ends with^XZ. - TSPL is the language of TSC printers.
SIZEsets the width and the length of the label, andBARCODEprints a code.
Raw printing means that the software sends these commands to the printer over the network. There is no driver, no PDF and no print dialog. We found no TSPL output in the Odoo Community source code. The Odoo documentation pages that we read do not name TSPL.
Which functions are in Enterprise, in Community and in Case 01?
| Function | Odoo Enterprise | Odoo Community standard | Case 01 |
|---|---|---|---|
| Scan app for receipts, deliveries, internal transfers and counts | The Barcode app | Not found. The setting asks for an upgrade | A scan app on Community, for phones and hand scanners |
| ZPL label reports | Yes | Yes | Own ZPL labels for the plant |
| TSPL labels | Not in the documentation | Not found | Yes |
| Label to the printer with no dialog | With the IoT app and an IoT system | Not found. The label downloads as a file | Direct network connection to the printer |
| GS1-128 parsing | Yes | The parser module, with no scan app | Not used on own labels |
| RFID | Documented for the Barcode app | A parser for tag data, with no scan app | Not built |
How Case 01 scans and prints labels
Case 01 is a Vietnamese packaging manufacturer with more than 500 people in two plants. It runs Odoo Community with modules that Hoply.Works wrote. Each order has its own product: see Make to order: when every order needs its own bill of materials. Each bundle gets its label at the line.
- Scan with a phone or a scanner. Workers scan with the phone camera in the browser, or with a hand scanner. One scan finds a transfer, an operation type, a location, a product, a lot or a package. The app does receipts, deliveries, internal transfers, returns and inventory counts.
- Refuse the wrong scan. The screen refuses a product that is not on the transfer, a wrong location and a used serial number. A red message and a sound tell the worker. A transfer with open quality checks cannot be validated.
- Give each station its screen. A station screen is the work list of one job: store, re-check, pick, pack on pallets, load or deliver. Each screen has its own filter and its own buttons. At the dock, a full-screen scan screen loads the truck, and the scan is the assignment.
- Write the label as printer commands. The ERP writes each label as TSPL or ZPL text, not as a PDF. The printer record holds the language, the resolution, the label size, the darkness and the speed. The barcode is Code 128 and holds only the identifier of the package. There are labels for a bundle, a piece, a production order and a pallet.
- Choose the printer by station. A work centre has its printer. If it has none, the ERP takes the printer of the worker's team, only when there is exactly one. If not, the worker chooses from the printers of the plant. A warehouse has its printer for pallet tags.
- Stop when the printer does not answer. Before a print, the ERP asks the printer for an answer. If no answer comes, the ERP creates nothing, and the worker chooses a different printer. The administrators get an alert. A label counts as sent only when the printer accepted all its data. Each print goes into a history, and a reprint needs a reason.
The code has automated server tests: 30 for the scan app, 751 for label printing, 2,432 for the warehouse screens. It has 39 browser tests too. The tests use a simulated printer, so a test run prints nothing. The line workers print from the shop floor screens. See Odoo Community shop floor: phones at the line and a plant TV. These functions are not special to packaging.
What Case 01 does not do yet
- RFID. It is not built.
- GS1 labels and QR codes. The labels carry an own identifier in Code 128. GS1-128 labels, SSCC and QR codes are not built. The phone camera reads Code 128 only.
- Offline scanning. There is no offline mode. The scan screens need the connection to the server.
- USB and Bluetooth printers. A printer needs a network connection.
- A label designer. The label layouts are code.
- Manufacturing orders and batch transfers in the scan app. They are not built.
When does this not fit?
- You pay for Odoo Enterprise, and the standard flows fit. Use the Barcode app and an IoT system. They are the documented path.
- You run a distribution centre. If wave picking, slotting and carrier labels are your main work, compare a ready-made warehouse system first.
- Your customers demand GS1-128 or SSCC labels today. Case 01 does not print them yet.
- You print a few labels each day. A ZPL file from Community or a PDF on label sheets is enough.
What to send us
- The units that need a label, and the data that each label must show.
- The language of your printers (ZPL or TSPL) and the label sizes.
- The stations where people scan, and the device at each station.
Read next: Odoo Community shop floor: phones at the line and a plant TV · Odoo visitor management: visitors, trucks and gate passes in one app · Case 01: links to the plant's hardware · Talk to us
Sources
- Odoo documentation: Barcode
- Odoo documentation: barcode scanner hardware
- Odoo documentation: barcode software set-up
- Odoo documentation: GS1 barcode nomenclature
- Odoo documentation: RFID
- Odoo documentation: print labels in ZPL
- Odoo documentation: connect a printer
- Odoo documentation: connect an IoT system to a database
- Odoo documentation: IoT box
- Odoo: Community and Enterprise editions
- GS1: barcodes
- GS1: 2D barcodes
- GS1: application identifiers
- GS1: Serial Shipping Container Code (SSCC)
- Zebra: ZPL programming guide, the ^XA command
- TSC: TSPL/TSPL2 programming manual (PDF)
- Odoo source code: the Barcode module of Community
- Odoo source code: the GS1-128 parser module of Community
- Odoo source code: the Barcode option in the Inventory settings
- Odoo source code: the ZPL label reports of Inventory
- Odoo source code: the file type of a text report
- Hoply.Works, Case 01: the code of the live system, read on 24 November 2026.