Contract Variable Qty Timesheet
This module extends the functionality of contract_variable_quantity adding several variable quantity formulas to allow to invoice lines from Timesheet (Analytic Lines).
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Adds three new quantity formulas to recurring contracts so that invoice lines can be automatically filled with hours logged in Timesheets (analytic lines) for the matching period.
This module extends the contract variable quantity feature by providing ready-made formulas that calculate the quantity to invoice from Timesheet entries instead of a fixed number.
When you set up a contract line, you can now choose one of three new formulas:
- Project Timesheets: counts the hours recorded on any task of the project(s) linked to the contract line's analytic distribution, for the invoicing period.
- Task Timesheets: counts the hours recorded on tasks (any task) linked to the contract line's analytic distribution, for the invoicing period.
- Analytic Same Product: counts the hours recorded on the same product as the contract line, within the contract line's analytic distribution, for the invoicing period.
All three formulas look at analytic lines (Timesheet entries) whose date falls between the period start and end dates, and sum their unit amount. Only entries with no product set are counted for the two timesheet formulas, so that only pure time entries are taken into account.
The formulas are added as data records of the contract.line.qty.formula model, so they appear in the formula selection list on contract lines. No new menus or screens are created; the functionality is used from the existing contract configuration and invoicing screens provided by the contract modules.
Depends on
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: 6 confirmed, 3 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/contract.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0To use this module, you need to:
- Go to Invoicing \> Customers \> Customer 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 "Project Timesheets", "Tasks Timesheets" or "Analytic Same Product" depending on your need.
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.