contract_forecast
Provides automated creation and analysis of contract line forecast periods so companies can anticipate upcoming invoicing.
Key Features
- contract.contract: Adds a Forecast smart button that opens pivot and list analyses of contract forecast periods.
- contract.line: Automatically regenerates forecast periods via queued jobs whenever invoicing-relevant fields change.
- contract.line: Builds forecast periods up to a configurable horizon while honoring auto-renewal, end dates, and cancellation status.
- contract.line.forecast.period: Stores read-only forecast details with dates, quantities, pricing, discounts, and computed untaxed subtotals.
- res.config.settings: Lets administrators enable contract forecasting per company and define the number and cadence of generated periods.
- res.company: Persists company-wide forecast settings including horizon length, period interval, and activation flag.
- queue_job: Registers a dedicated job channel so forecast generation runs asynchronously, including during the module's post-init hook.
- security: Grants internal users access to forecast records with multi-company domain restrictions.