Skip to content

[19.0][MIG] contract_forecast#1464

Open
Larsq1 wants to merge 35 commits into
OCA:19.0from
codeforward-bv:19.0-mig-contract_forecast
Open

[19.0][MIG] contract_forecast#1464
Larsq1 wants to merge 35 commits into
OCA:19.0from
codeforward-bv:19.0-mig-contract_forecast

Conversation

@Larsq1

@Larsq1 Larsq1 commented Jun 15, 2026

Copy link
Copy Markdown

Migration

Standard migration of contract_forecast to 19.0.

Depends on #1370 ([19.0][MIG] contract_line_successor) — this module's Odoo dependencies are contract_line_successor and queue_job. queue_job is already on the 19.0 branch (OCA/queue), but contract_line_successor is not yet, so this PR is opened as draft until #1370 merges.

Changes

  • Bump manifest version 18.0.1.0.119.0.1.0.0
  • models/contract.py: drop from odoo import _ and switch to self.env._() per the 18.0+ translation guideline
  • views/contract_line_forecast_period.xml: remove deprecated string / expand attributes from the <group> element in the search view (per OCA migration-to-19.0 guide)
  • Update README.rst, static/description/index.html, and .pot/.po headers (pot, sl, sv) to 19.0

No other API breaks applied — module already uses 19.0-compatible patterns (no _sql_constraints, no read_group, no osv.expression, no _cr/_uid/_context accessors, search view uses list instead of tree).

Test plan

  • CI green once [19.0][MIG] contract_line_successor #1370 is merged and this branch is rebased
  • Module installs cleanly on a 19.0 database with demo data
  • post_init_hook enqueues forecast-period generation jobs without error
  • Existing tests in tests/test_contract_line_forecast_period.py pass
  • Manual check: open a contract → "Forecast" stat button opens the pivot/list view, Group By filters work

sbejaoui and others added 30 commits June 15, 2026 14:07
use the new methods for next period calculation result of the refactoring in OCA#434
to consider the recurring_invoicing_type for monthlylastday mode and clean code
…ract lines

If a contract line is set to auto renew the forecast should continue  after the
date end and stop at the company forecast period
…ntracts

If a contract line have and undefined date end the forecast should continue
to the company forecast period
@Larsq1 Larsq1 changed the title 19.0 mig contract forecast [19.0][MIG] contract_price_revision Jun 15, 2026
@Larsq1 Larsq1 changed the title [19.0][MIG] contract_price_revision [19.0][MIG] contract_forecast Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:contract_forecast Module contract_forecast series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants