This module provides different configuration option to manage packagings on sale orders.
The creation/update of sale order line will be blocked (by constraints) if the data on the sale.order.line does not fit with the configuration of the product's packagings.
It's also possible to force the quantity to sell during creation/modification of the sale order line if the "Force sale quantity" is ticked on the packaging and the "Sell only by packaging" is ticked on product.
For example, if your packaging is set to sell by 5 units and the employee fill the quantity with 3, the quantity will be automatically replaced by 5 (it always rounds up).
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Lets you force products to be sold only in whole packagings on sale orders, blocking or auto-rounding quantities that do not match the packaging.
This module adds a selling restriction on products: when "Only sell by packaging" is ticked on a product, that product can no longer be sold on a sale order line without choosing a packaging and a whole number of packagings.
On each packaging you can tick "Force sale quantity". If the product is set to be sold only by packaging and this option is on, the quantity typed on the sale order line is automatically rounded up to the next multiple of the packaging. For example, a packaging of 5 units turns a typed quantity of 3 into 5.
Business rules and checks added: - A product cannot be marked "Only sell by packaging" if it is not sellable, or if it has no packaging that can be sold. - A packaging level that is used by such a product cannot be switched off from "Can be sold". - Sale order lines are blocked if the product is sold only by packaging but no packaging or a fractional packaging quantity is used.
The module also shows a computed "Minimum sellable quantity" on products and product variants, based on the smallest sellable packaging. It touches product.template, product.product, product.packaging, product.packaging.level and sale.order.line, and adds fields to the product and packaging list and form views.
Depends on
Required by other modules
Models and fields (5)
- product.product · extends an existing modelmin_sellable_qty
- sale.order.line · extends an existing model
- product.template · extends an existing modelmin_sellable_qty, sell_only_by_packaging (Only sell by packaging)
- product.packaging · extends an existing modelforce_sale_qty (Force sale quantity)
- product.packaging.level · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 18.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 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/sale-workflow.
terminal Installation and usage
OCA documentation · Odoo 18.0Configuration
Source · Odoo 18.0Following options are available to define which packaging level can be sold and which product can only be sold by packaging.
- Sell only by packaging: On product template model, this checkbox restricts sales of these products if no packaging is selected on the sale order line. If no packaging is selected, it will either be auto-assigned if the quantity on the sale order line matches a packaging quantity or an error will be raised.
- Force sale quantity (on the packaging): force rounds up the quantity during creation/modification of the sale order line with the factor set on the packaging.
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.