Contract Variable Qty Sale Order Line
This module adds a formula to compute sale order line quantity to invoice as extension of the module contract_variable_quantity.
auto_awesome What this module does
AI-generated from the code · Odoo 12.0Adds a new formula option for contract quantity calculation that uses the linked sale order line quantity. This lets users invoice based on the ordered quantity from a sale order.
This module extends the contract variable quantity functionality by adding a new formula choice called "Sale Order Line Quantity". When setting up a contract line, users can select this formula to automatically compute the quantity to invoice based on the quantity ordered on the related sale order line.
The formula is available in the quantity formula selection on contract lines. It uses the sale order line's ordered quantity (product_uom_qty) as the result. If no sale order line is linked or the quantity is zero, it defaults to 1.
This is useful for service contracts where the invoiced quantity should match what was sold on a sale order. The module does not add new menus or models; it only provides a new formula record that integrates with the existing contract management features.
Depends on
Text generated by AI (DeepSeek) from reading the Odoo 12.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 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/contract.
terminal Installation and usage
OCA documentation · Odoo 12.0Usage
Source · Odoo 12.0To use this module, you need to:
- Go to Invoicing > Sales > Contracts and select or create a new contract.
- Check Generate recurring invoices automatically.
- Add a new recurring invoicing line.
- Select "Variable quantity" in column "Qty. type".
- Select "Sale Order Line"
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.