OdooWiki OCA HUB

Contract Variable Qty Prorated

contract_variable_qty_prorated folder_open OCA/contract open_in_new
Uncategorised License: AGPL-3

This module adds a formula to compute prorated quantity to invoice as extension of the module contract_variable_quantity.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Adds a "Prorated Quantity" formula for contract lines, so invoices can bill a quantity proportional to the days actually covered in the invoicing period.

This module extends the contract variable quantity feature with a new quantity formula called "Prorated Quantity". When a contract line uses this formula, the quantity to invoice is calculated as the line's quantity multiplied by the share of the period that is really invoiced.

The calculation compares the real invoicing period with the theoretical one. It takes into account the recurrence type (for example monthly, monthly last day, daily), the recurrence interval, and whether invoicing is pre-paid or post-paid. For monthly-last-day contracts with post-paid invoicing, the calculation adjusts the theoretical period accordingly. The result is a ratio of invoiced days, which is then applied to the line quantity.

On contract templates, the quantity field is hidden and made required, because the quantity is now driven by the formula rather than entered manually. The module works on contract.line and contract.template.line records and depends on contract_variable_quantity.

Required by other modules

Models and fields (1)
  • contract.line · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 19.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: 4 confirmed, 5 with no information of 9 versions.

terminal Installation and usage

No verified information

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.

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.