From 55bb9865de84cd465b7bc021c3ed6b97941376ae Mon Sep 17 00:00:00 2001 From: Lena MONTENOT / Honeyxilia Date: Wed, 20 May 2026 11:20:18 +0200 Subject: [PATCH 1/2] [FIX] contract_forecast: Removed default values from related fields in res.config.settings Opening the Configuration menu instanciates a new res.config.settings object, then applies the assigned values to revelant fields once we use the Save action. The related field on these fields are intended to fetch the company values, then to apply the saved values to the related field afterwards. However, the assignment of default values on these fields means that, when creating a new res.config.settings instance, these default values are used, and then inversely applied to the related fields, meaning that if we are to use the Save action (which can happen if we quit the view), the default values always override the company values, unless we always go out of our way to the Invoicing tab and set the contract_forecast values to the desired values. As such, we remove these default attributes, so that the res.config.settings instance doesn't override the company values whenever we open the Configuration menu. --- contract_forecast/models/res_config_settings.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/contract_forecast/models/res_config_settings.py b/contract_forecast/models/res_config_settings.py index 212efeea6f..746473dd53 100644 --- a/contract_forecast/models/res_config_settings.py +++ b/contract_forecast/models/res_config_settings.py @@ -10,18 +10,15 @@ class ResConfigSettings(models.TransientModel): enable_contract_forecast = fields.Boolean( string="Enable contract forecast", - default=True, readonly=False, related="company_id.enable_contract_forecast", ) contract_forecast_interval = fields.Integer( string="Number of contract forecast Periods", - default=12, related="company_id.contract_forecast_interval", readonly=False, ) contract_forecast_rule_type = fields.Selection( - default="monthly", related="company_id.contract_forecast_rule_type", readonly=False, ) From 03d1763521ded00cce64ad870588ce521c9daec7 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 4 Jun 2026 13:09:02 +0000 Subject: [PATCH 2/2] [BOT] post-merge updates --- README.md | 2 +- contract_forecast/README.rst | 2 +- contract_forecast/__manifest__.py | 2 +- contract_forecast/static/description/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0b879da381..31263ed188 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ addon | version | maintainers | summary [agreement_rebate_partner_company_group](agreement_rebate_partner_company_group/) | 16.0.1.0.0 | | Rebate agreements applied to all company group members [contract](contract/) | 16.0.2.15.0 | | Recurring - Contracts Management [contract_analytic_tag](contract_analytic_tag/) | 16.0.1.0.0 | victoralmau | Contract Analytic Tag -[contract_forecast](contract_forecast/) | 16.0.1.0.0 | | Contract forecast +[contract_forecast](contract_forecast/) | 16.0.1.1.0 | | Contract forecast [contract_invoice_start_end_dates](contract_invoice_start_end_dates/) | 16.0.1.0.0 | florian-dacosta | Contract Invoice Start End Dates [contract_mandate](contract_mandate/) | 16.0.1.0.0 | | Mandate in contracts and their invoices [contract_payment_auto](contract_payment_auto/) | 16.0.1.0.1 | | Adds automatic payments to contracts. diff --git a/contract_forecast/README.rst b/contract_forecast/README.rst index 76565cf9a5..b67a216bae 100644 --- a/contract_forecast/README.rst +++ b/contract_forecast/README.rst @@ -11,7 +11,7 @@ Contract Forecast !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:485e36727381fcffd25b1afc873b3552a07c050ad85769998e5478dd18739da6 + !! source digest: sha256:61fb7688c4a04a96bccb8a20eff5db0de1b4b837a7f39e6a2dc3d376b307c710 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/contract_forecast/__manifest__.py b/contract_forecast/__manifest__.py index 1502465e9d..aaacce7b6f 100644 --- a/contract_forecast/__manifest__.py +++ b/contract_forecast/__manifest__.py @@ -5,7 +5,7 @@ "name": "Contract Forecast", "summary": """ Contract forecast""", - "version": "16.0.1.0.0", + "version": "16.0.1.1.0", "license": "AGPL-3", "author": "ACSONE SA/NV," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/contract", diff --git a/contract_forecast/static/description/index.html b/contract_forecast/static/description/index.html index 113d4da1ad..358d99d8d1 100644 --- a/contract_forecast/static/description/index.html +++ b/contract_forecast/static/description/index.html @@ -372,7 +372,7 @@

Contract Forecast

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:485e36727381fcffd25b1afc873b3552a07c050ad85769998e5478dd18739da6 +!! source digest: sha256:61fb7688c4a04a96bccb8a20eff5db0de1b4b837a7f39e6a2dc3d376b307c710 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/contract Translate me on Weblate Try me on Runboat

This module add the possibility to analyse contract forecast.