This module extends Odoo Point Of Sale features, to allow to scan barcode with price and to compute according quantity.
In Odoo by default, there are three types of barcode rules for products.
- 'Unit Product' (type=product). Scanning a product will add a unit of this product to the current order.
- 'Priced product' (type=price). A price is extracted from the barcode, and a new line with the given price and a quantity = 1 is added to the current order.
- 'Weighted product' (type=weight). A weight is extracted from the barcode, and a new line with the given weight, and a computed price (quantity * Unit price) is added to the current order.
This module add a new option:
- 'Priced Product (Computed Weight)' (type=price_to_weight). A price is extracted from the barcode, and a new line with the given price, and a computed quantity (Price / Unit Price) is added to the current order.
This module is usefull in shops with products scaled, to manage correctly stock quantities.
Samples
- Given a product with a unit price of 1,50€ / kg
- The barcode is 0212345{NNNDD}x where:
- 02 is the prefix of the barcode rule
- 12345 is the product number
- {NNNDD} is the price of the scaled product
- x is the control digit
- On the product we so set '0212345000007' in the barcode field.
- if the scanned barcode is 0212345002650:
- {NNNDD} is 00265, the price is so 2,65€
- the according quantity is 2,65€ / 1,5 €/kg = 1,767 kg
- if the scanned barcode is 0212345008102:
- {NNNDD} is 00810, the price is so 8,10€
- the according quantity is 8,10€ / 1,5 €/kg = 5,400 kg
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Adds a new barcode type in Point of Sale that reads a price from the barcode and automatically computes the quantity to add, based on the product's unit price. Useful for selling products priced by weight or volume.
This module adds a fourth barcode rule type in Point of Sale, called "Priced Product (Computed Weight)". When a cashier scans a barcode of this type, Odoo reads the price encoded in the barcode and works out how many units (for example, how many kilograms) to add to the order, by dividing that price by the product's unit price.
- The new barcode type is available when configuring barcode rules (
barcode.rule), alongside the standard unit, price and weight types. - A new setting appears in Point of Sale configuration, next to the barcode nomenclature field: "Price (Computed Weight) Barcodes Include Taxes". It is on by default and is shared by all Point of Sale registers of the company.
- When this setting is enabled, the price read from the barcode is treated as tax-included; when disabled, it is treated as tax-excluded. The quantity is computed accordingly.
- The setting cannot be changed while a Point of Sale session is open.
- The scanned line is added with the computed quantity and is not merged with an existing line of the same product.
- If the product's unit price is zero, the computed quantity is zero.
The module touches the Point of Sale product screen, the barcode rule configuration, the Point of Sale settings screen, and the company settings (res.company).
Depends on
Models and fields (4)
- pos.config · extends an existing modelis_price_to_weight_tax_included
- res.company · new modelis_price_to_weight_tax_included (Price (Computed Weight) Barcodes Include Taxes)
- barcode.rule · extends an existing modeltype
- res.config.settings · extends an existing modelis_price_to_weight_tax_included
Text generated by AI (DeepSeek) from reading the Odoo 16.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-03Confirmation status: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/pos.
terminal Installation and usage
OCA documentation · Odoo 16.0Configuration
Source · Odoo 16.0- Go to Settings > Point of Sale > Inventory.
- Open the Barcode Nomenclature list and edit your barcode rules, according to your barcodes settings.
- Ensure that the "Price (Computed Weight) Barcodes Include Taxes" checkbox is checked or not depending on whether the prices encoded in your barcodes include taxes or not.
No verified information in OCA: Installation, Usage.
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.
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.