Allows to sell decimal quantities of products in continuous units of measure (kg, L, m, ...) on the eCommerce.
By default, Odoo casts the quantities added to the cart to integers, so a customer can't buy 2.5 kg of a product. With this module, quantities are rounded according to the unit of measure:
- Continuous units of measure keep the decimals allowed by the "Product Unit" decimal precision, e.g. 2.5 kg.
- Units of measure based on Units can't be split, and keep integer quantities.
This applies to the product page, the product configurator, the cart, the checkout summary and the quick reorder.
The cart quantity shown in the header counts each line in a continuous unit of measure as a single item, e.g. 2.5 kg and 3 units count as 4 items.
auto_awesome What this module does
AI-generated from the code · Odoo 19.0Lets online shoppers buy decimal quantities of products sold by weight, volume or length (kg, L, m) on your website, while products sold by units stay whole numbers.
On the eCommerce website, customers can now enter quantities such as 2.5 kg or 1.75 L for products whose unit of measure is continuous (weight, volume, length). Products sold by units keep whole quantities only.
- The product page, the product configurator, the cart, the checkout summary and the quick reorder screen all accept and display decimals for continuous units of measure.
- Quantities are rounded to the number of decimals allowed by the "Product Unit" decimal precision setting.
- If a customer types a decimal quantity for a product sold by units, it is automatically converted to a whole number.
- The cart icon in the header counts each line in a continuous unit of measure as one item, so 2.5 kg plus 3 units shows as 4 items.
- The quick reorder screen suggests the previously ordered quantity with its decimals.
This module changes the behaviour of the website cart and checkout, the product configurator, and the quick reorder feature. It relies on the unit of measure settings of each product to decide whether decimals are allowed.
Depends on
Models and fields (3)
- ir.http · extends an existing model
- sale.order · extends an existing model
- product.template · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 19.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: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 19.0
Confirmed on 2026-11-03 in branch 19.0 of OCA/e-commerce.
terminal Installation and usage
OCA documentation · Odoo 19.0Usage
Source · Odoo 19.0- Create a product sold in a continuous unit of measure, e.g. kg, and publish it on the website.
- On its product page, set the quantity to 2.5 and add it to the cart.
- The cart line holds 2.5 kg, and its quantity can be changed to any value allowed by the "Product Unit" decimal precision.
Products sold in Units keep integer quantities: setting 2.5 on their product page, in the product configurator or in the cart turns it into 2.
No verified information in OCA: Installation, Configuration.
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.