Product Optional Product Quantity
This module implements core functionality for the optional product quantity multipliers. You can depend on this module to implement further user features.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Lets you define optional products for a product together with a default quantity, and control who can see and edit those quantities through a settings option.
This module replaces the standard optional products list on a product with a new editable list where each optional product also has a quantity. On the product form, the original optional products field is hidden and a new 'Optional Products Line' table appears instead, showing the optional product and its quantity.
Business rules enforced by the system: - A product cannot be added as an optional product of itself. - The same optional product cannot be added twice for the same product. - The quantity defaults to 1.
A new setting 'Optional Products Quantity' appears in the Sales settings area. When enabled, users in the 'Use Optional Products Quantity' group can see and edit the quantity column; other users do not see it. Salespeople can create, edit and delete optional product lines, while regular users can only read them.
The module also keeps the standard optional products field in sync automatically, so other parts of Odoo that rely on it continue to work. It touches the product template, the optional product line model, and the settings screen.
Depends on
Models and fields (3)
- product.template · extends an existing modeloptional_product_ids, product_optional_line_ids (Optional Products Line)
- res.config.settings · extends an existing modelgroup_product_optional_quantity (Optional Products Quantity)
- product.optional.line · new modelquantity, company_id, product_tmpl_id (Related Product), optional_product_tmpl_id (Product)
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: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/product-attribute.
terminal Installation and usage
OCA documentation · Odoo 16.0Configuration
Source · Odoo 16.0Go to Settings > Sales tab In the "Product Catalog" section enable "Optional Products Quantity" feature
Open a product and go to the "Sales" tab. Add optional products with quantities in the "Optional Products" field.
Usage
Source · Odoo 16.0Usage flow is implemented in modules depending on this one.
No verified information in OCA: Installation.
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.