POS Weight Barcode: Scale Label with Weight, Price or Quantity
by Aerya IT Solutions https://aerya.net$ 54.79
In-App Purchases
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
POS Weight Barcode: Scale Label with Weight, Price or Quantity
Delis, butchers, bakeries and market stalls print labels on a scale whose barcode carries the weight, the price or the number of pieces. The Point of Sale reads them, and refuses the labels that are misprinted.
Scale label and item code (PLU) on each product
EAN-13 and price check digits verified at the till
A warning when the label price does not match the weight
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 19 with the demo data of a fictitious shop.
The problem
A deli, a butcher, a bakery, a cheese counter or a market stall weighs the goods on a scale that prints a label. The barcode on that label is not the plain barcode of a product: it carries the item code of the product (the PLU) together with the weight, the price or the number of pieces. Which digits mean what depends on the scale and on its settings. One scale puts the weight with three decimals after the item code, another puts the price, and a third adds a check digit so that a torn label is not read wrongly.
The default barcode rules of Odoo cover few of these layouts and verify no check digit. A label with one wrong digit can be accepted and the customer pays for the wrong weight. Item codes are typed by hand, with the right number of zeros, into the barcode of every weighed product.
What the module does
It teaches the Point of Sale the label layouts your scale prints. You switch on one of ten ready formats, or describe your own, and give each weighed product its item code. The module builds the product barcode for you. At the till, a scanned scale label puts the product on the order with the weight or quantity read from the barcode. A label whose check digit is wrong is refused, and a label whose price does not fit the weight raises a warning.
How it works, step by step
- Install. Install the module on a database that has Point of Sale. It depends on point_of_sale only, and it needs no other app. The ten formats come with it switched off, so the till behaves as before until you choose.
- Switch on your formats. Open Point of Sale > Configuration > Scale Label Formats. The list shows each format with its prefix, its kind (weight, price or quantity), an example label and whether it uses a check digit. Switch on the ones your scale prints with the toggle at the end of the row.
- Give each product its item code. On the product form, in the Point of Sale group of the Sales tab, pick the Scale Label and type the Scale Item Code. The barcode of the product is set for you, with the value digits at zero.
- Print and scan. Print a label on the scale and scan it at the till. The product is added with the weight or the quantity found in the barcode, at the unit price of the product.
- Read the messages. A wrongly printed label shows a message in the till and adds nothing. A label whose price differs from weight times unit price adds the line and shows a warning, so the cashier decides.
A worked example
Take the format Weight 21 (item 5, weight 2.3): the prefix 21, an item code of 5 digits, the weight in grams with 3 decimals (5 digits) and the EAN-13 check digit. The scale prints 1.250 kg of the product with item code 456 as 2100456012508: prefix 21, item 00456, weight 01250, check digit 8. The till finds the product whose item code is 456 on that format, puts 1.250 kg on the line and prices it at the unit price of the product. If the last digit were 7, the label would be refused, because the EAN-13 check digit does not add up.
The ten ready formats
- Weight with 3 decimals, with the prefix 21 (item of 5 digits, weight 2.3) or 22 (item of 5 digits, weight 3.2).
- Weight 28 with a check digit on the weight (item of 4 digits, weight 2.3).
- Price: prefix 24 (price 3.2), and prefixes 02, 22 and 29 with a price check digit; one of them with a price of 2.2 and an item of 5 digits.
- Quantity 25: the number of pieces, with an item of 5 digits.
- Weight and price 26: a longer Code 128 label that carries both the weight and the price, the one that makes the price check possible.
Features in the till and in the back office
Ten label formats, or your own
Each format shows an example label and the rule the till reads: prefix, item length, value digits and decimals, check digit and EAN-13 control. You can open a format, change its digits and decimals and save it as a format of your own.
Each active format writes the matching rule in the barcode nomenclature of the company. The reading itself is done by the Odoo core; the module adds the checks.

The label is set on the product
Weighed products and products sold by price or by piece use the same two fields. Nobody types a zero padded barcode: the barcode follows the label and the item code, and it is cleared when you remove the label. A barcode you type in the same save is kept.
An item code is 1 to the length of the format in digits. Two products cannot use the same prefix, length and item code.

A misprinted label is refused
The final EAN-13 digit and the check digit of the price or the weight are verified at the till. A wrong label shows a clear message in the till itself and adds nothing, with no product creation form opening in its place.

A wrong price is flagged
On the long label with weight and price, the till compares the label price with weight times the unit price. If they differ by more than the tolerance of the format, a warning shows and the line is still added.

Settings and options
| Kind | Weight, price or quantity: what the digits after the item code mean. |
| Prefix and item length | A prefix of 02 or 20 to 29, and an item code of 4 or 5 digits. |
| Value digits and decimals | How many digits carry the weight or quantity, and how many of them are decimals. |
| Check digit | A check digit on the price or the measure, verified at the till. |
| EAN-13 control | Untick it for a longer Code 128 label. |
| Price tolerance | The difference allowed between the label price and weight times the unit price (0.05 by default). Raise it when the scale price includes tax or follows a pricelist. |
What it does not do
- A format that does not add up to 13 digits, a prefix outside 02 and 20 to 29, or a check digit on a value that is not 4 or 5 digits is refused when you save it.
- Two active formats with the same prefix and length in one nomenclature are refused: archive one of the two.
- Changing the layout of a format that products use, or deleting it, is refused: archive it and create a new one.
- A GS1 nomenclature is not changed. Labels are read with the default nomenclature of the company.
- Only the Point of Sale reads weight labels. The inventory screens of the back office do not, because Odoo has no barcode scanning there on Community.
- The price check uses the list price of the product at the till.
Requirements
| Odoo versions | 17, 18, 19 and 20 |
| Editions | Community and Enterprise |
| Odoo apps | Point of Sale |
| Modules of ours | None |
| Languages | English and Spanish |
Questions
Does it work with my scale?
It works with scales that print the EAN-13 layouts described in the GS1 General Specifications for variable measure items, and a longer Code 128 label. Look at one label from your scale, find its prefix and digit counts, and switch on the matching format or add your own.
Do I need to change the barcode of my products?
No. Pick the label and type the item code, and the module sets the barcode. Barcodes that are not scale labels are read as before.
Does it work with several companies?
Barcode nomenclatures are shared by all companies in Odoo, and so are the formats. Item codes are checked for clashes within the products that the same company can see.
Does it read labels on the inventory screens?
No. Only the Point of Sale reads them.
What if the price on the label is not weight times my price?
The line is added and a warning shows. Raise the tolerance of the format if your scale price includes tax or follows a pricelist.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 19, 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 |
•
Point of Sale (point_of_sale)
• Discuss (mail) • Inventory (stock) • Invoicing (account) |
| Lines of code | 1032 |
| Technical Name |
aerya_pos_weight_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