Product Contract Variable Quantity
This module add default values to contract products for variable quantity formula.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Lets you set a quantity type (fixed or variable) and a quantity formula on contract products, and automatically carries those settings into sale order lines, contract lines and the contract configurator.
This module links product contracts with variable quantities. On a product that is marked as a contract product, a new "Quantity to invoice" section appears on the Contract tab of the product form. There you choose the quantity type: Fixed quantity or Variable quantity. If you pick Variable quantity, you must also choose a quantity formula.
When you add such a product to a sales order, the quantity type and formula are copied onto the sales order line. They are hidden by default in the order lines list but can be shown. The same fields are also available in the product contract configurator wizard, where the quantity type is required for contract products and the formula is required when the type is variable.
When a contract line is created from a sales order line, the quantity type and formula are transferred to the contract line. Changing the product on a contract line also refreshes these values from the product.
Business rules handled automatically: products that are not contract products cannot keep a quantity type or formula; if the type is not Variable, the formula is cleared; and the formula is only required when the type is Variable.
Required by other modules
Models and fields (4)
- contract.line · extends an existing model
- sale.order.line · extends an existing model
- product.template · extends an existing modelqty_type (Qty. type), qty_formula_id (Qty. formula)
- sale.order.line.contract.mixin · extends an existing modelqty_type (Qty. type), qty_formula_id (Qty. formula)
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/contract.
terminal Installation and usage
No verified informationInstallation 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.