From a72b116d5f9ff861316bfd11ef5b566e3f2bd338 Mon Sep 17 00:00:00 2001 From: Renzo Meister Date: Fri, 24 Jul 2026 12:16:06 +0200 Subject: [PATCH 1/2] [FIX] contract: do not suggest archived products in contract lines The contract_line_ids and contract_line_fixed_ids one2many fields set active_test=False in their context so that archived (closed) contract lines remain visible in the contract form. The web client propagates this context to every RPC issued from within the lines, including the name_search of the product_id and uom_id many2one fields. As a result, archived products and units of measure were suggested in the dropdowns. Restore the default behaviour by explicitly setting active_test=True on these fields in the embedded line lists and in the line form dialog. (cherry picked from commit 6459aa9b58c365ce52eaa9ae3448914b974b7625) --- contract/views/contract.xml | 12 ++++++++++-- contract/views/contract_template_line.xml | 2 ++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/contract/views/contract.xml b/contract/views/contract.xml index 50dab8bac4..9470476f90 100644 --- a/contract/views/contract.xml +++ b/contract/views/contract.xml @@ -132,6 +132,7 @@ - + - + @@ -36,6 +37,7 @@ groups="uom.group_uom" class="oe_no_button" required="not display_type" + context="{'active_test': True}" /> From 1b381b9141ef9c31cbebd2910bc62efce9b5ee2a Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 29 Jul 2026 14:40:02 +0000 Subject: [PATCH 2/2] [BOT] post-merge updates --- README.md | 2 +- contract/README.rst | 2 +- contract/__manifest__.py | 2 +- contract/static/description/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fa5c4fe801..bfc364baa5 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Available addons ---------------- addon | version | maintainers | summary --- | --- | --- | --- -[contract](contract/) | 19.0.1.0.2 | | Recurring - Contracts Management +[contract](contract/) | 19.0.1.0.3 | | Recurring - Contracts Management [contract_analytic_tag](contract_analytic_tag/) | 19.0.1.0.0 | victoralmau | Contract Analytic Tag [contract_payment_mode](contract_payment_mode/) | 19.0.1.0.0 | | Payment mode in contracts and their invoices [contract_sale](contract_sale/) | 19.0.1.0.0 | | Contract from Sale diff --git a/contract/README.rst b/contract/README.rst index cdfd3075e5..d22f7f27fc 100644 --- a/contract/README.rst +++ b/contract/README.rst @@ -11,7 +11,7 @@ Recurring - Contracts Management !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:a01f9e3400609347bf96939d0cf01af513faa51c2785c95017c2648a5db4293c + !! source digest: sha256:61eced46371546575f29bfdb4fc820cbb20fe98ce8db9311ef80f138c979ae30 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png diff --git a/contract/__manifest__.py b/contract/__manifest__.py index 6e4f2a4c8b..5dd47afd38 100644 --- a/contract/__manifest__.py +++ b/contract/__manifest__.py @@ -11,7 +11,7 @@ { "name": "Recurring - Contracts Management", - "version": "19.0.1.0.2", + "version": "19.0.1.0.3", "category": "Contract Management", "license": "AGPL-3", "author": "Tecnativa, ACSONE SA/NV, Odoo Community Association (OCA)", diff --git a/contract/static/description/index.html b/contract/static/description/index.html index 0b8bfbfa6c..8a9c18b5b1 100644 --- a/contract/static/description/index.html +++ b/contract/static/description/index.html @@ -372,7 +372,7 @@

Recurring - Contracts Management

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

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

This module enables contracts management with recurring invoicing