OdooWiki OCA HUB

Contract Variable Qty Sale Order Line

contract_variable_qty_sale_order_line folder_open OCA/contract open_in_new
Contract Management License: AGPL-3

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.0

Adds 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.

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 12.0

To 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.

info

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.