From 6344297a0ec28159633a376f43bbc982050fd591 Mon Sep 17 00:00:00 2001 From: SilvioC2C Date: Fri, 12 Jun 2026 16:57:20 +0200 Subject: [PATCH 1/2] [IMP] component: improve test setup Class ``TransactionComponentCase.setUp()`` was not calling ``super()`` because of an inheritance issue: ``odoo.tests.common.TransactionCase.setUp()`` was not calling ``super()`` either. Since the issue has been solved, the test setup can be improved, allowing subclasses that inherit from ``TransactionComponentCase`` to correctly resolve the chain of ``super().setUp()`` calls. --- component/tests/common.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/component/tests/common.py b/component/tests/common.py index 17da7f0f8..504fd52a8 100644 --- a/component/tests/common.py +++ b/component/tests/common.py @@ -72,17 +72,6 @@ def setUpClass(cls): super().setUpClass() cls.setUpComponent() - # pylint: disable=W8106 - def setUp(self): - # resolve an inheritance issue (common.TransactionCase does not call - # super) - common.TransactionCase.setUp(self) - ComponentMixin.setUp(self) - # There's no env on setUpClass of TransactionCase, must do it here. - self.env.context = dict( - self.env.context, components_registry=self._components_registry - ) - class ComponentRegistryCase: """This test case can be used as a base for writings tests on components From 5cd85ad05a06f835157ea43a22e031d79cea3c74 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 15 Jun 2026 11:01:32 +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 68cd8bbef..08ad1bce0 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Available addons ---------------- addon | version | maintainers | summary --- | --- | --- | --- -[component](component/) | 18.0.1.0.3 | guewen | Add capabilities to register and use decoupled components, as an alternative to model classes +[component](component/) | 18.0.1.0.4 | 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 38cad1c44..2d384f5af 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:40645739851dfc97c6ba2cea4d340730d6a70f527f0da6183072577ca569b7a6 + !! source digest: sha256:95b2034f6c9423939b2265e953ba63d9df6b720a0811ed52a8d17204eab9240f !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png diff --git a/component/__manifest__.py b/component/__manifest__.py index 1cf5e500f..b9676ae6e 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.3", + "version": "18.0.1.0.4", "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 f70830bdc..30b096fc0 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:40645739851dfc97c6ba2cea4d340730d6a70f527f0da6183072577ca569b7a6 +!! source digest: sha256:95b2034f6c9423939b2265e953ba63d9df6b720a0811ed52a8d17204eab9240f !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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