From 200d2fa7f80196666a3962feffb88a79304cf5da Mon Sep 17 00:00:00 2001 From: SilvioC2C Date: Wed, 17 Jun 2026 13:05:57 +0200 Subject: [PATCH 1/2] [FIX] component: fix test setup Commit 6344297 improved test setup, but introduced a bug: the components registry was never flagged as 'ready' anymore. This commit fixes such bug. --- component/tests/common.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/component/tests/common.py b/component/tests/common.py index 504fd52a8..3da76ba86 100644 --- a/component/tests/common.py +++ b/component/tests/common.py @@ -44,10 +44,6 @@ def setUpComponent(cls): cls.env.context, components_registry=cls._components_registry ) - # pylint: disable=W8106 - def setUp(self): - self.setUpComponentRegistryReady() - def setUpComponentRegistryReady(self): # should be ready only during tests, never during installation # of addons @@ -72,6 +68,10 @@ def setUpClass(cls): super().setUpClass() cls.setUpComponent() + def setUp(self): + super().setUp() + self.setUpComponentRegistryReady() + class ComponentRegistryCase: """This test case can be used as a base for writings tests on components From c2a102e340d92c8f2c736c0a20a168637e94014c Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 17 Jun 2026 11:19:23 +0000 Subject: [PATCH 2/2] [BOT] post-merge updates --- README.md | 2 +- component/README.rst | 2 +- component/__manifest__.py | 2 +- component/static/description/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 08ad1bce0..e3a0c5c5d 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Available addons ---------------- addon | version | maintainers | summary --- | --- | --- | --- -[component](component/) | 18.0.1.0.4 | guewen | Add capabilities to register and use decoupled components, as an alternative to model classes +[component](component/) | 18.0.1.0.5 | guewen | Add capabilities to register and use decoupled components, as an alternative to model classes [component_event](component_event/) | 18.0.1.0.0 | | Components Events [connector](connector/) | 18.0.1.0.1 | | Connector [connector_base_product](connector_base_product/) | 18.0.1.0.0 | | Connector Base Product diff --git a/component/README.rst b/component/README.rst index 2d384f5af..55e39d94a 100644 --- a/component/README.rst +++ b/component/README.rst @@ -11,7 +11,7 @@ Components !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:95b2034f6c9423939b2265e953ba63d9df6b720a0811ed52a8d17204eab9240f + !! source digest: sha256:6eeb9ebb6f56f67df65ba7c6535721ee981eb7a3048c4c1ee77bc5fc7e391e7a !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png diff --git a/component/__manifest__.py b/component/__manifest__.py index b9676ae6e..b009f8c5e 100644 --- a/component/__manifest__.py +++ b/component/__manifest__.py @@ -5,7 +5,7 @@ "name": "Components", "summary": "Add capabilities to register and use decoupled components," " as an alternative to model classes", - "version": "18.0.1.0.4", + "version": "18.0.1.0.5", "author": "Camptocamp," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/connector", "license": "LGPL-3", diff --git a/component/static/description/index.html b/component/static/description/index.html index 30b096fc0..c91c7dc0d 100644 --- a/component/static/description/index.html +++ b/component/static/description/index.html @@ -372,7 +372,7 @@

Components

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:95b2034f6c9423939b2265e953ba63d9df6b720a0811ed52a8d17204eab9240f +!! source digest: sha256:6eeb9ebb6f56f67df65ba7c6535721ee981eb7a3048c4c1ee77bc5fc7e391e7a !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Production/Stable License: LGPL-3 OCA/connector Translate me on Weblate Try me on Runboat

This module implements a component system and is a base block for the