OdooWiki OCA HUB

Contract Variable Qty Timesheet

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

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

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

Confirmation status: 6 confirmed, 3 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 18.0

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

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.