From e130d8a1db0651b93e44f5de075e841af6d45b86 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Tue, 21 Feb 2023 14:29:01 +0000 Subject: [PATCH] [FIX] *: stop importing tests code When loading a module, the code in the tests directories should not be loaded. One does not need freezegun on a server without running the tests. closes odoo/odoo#113536 X-original-commit: 705c5d5dd9b76850638bd5d36b8395314ba78248 Related: odoo/enterprise#37481 Signed-off-by: Martin Trigaux (mat) --- addons/hr_skills/__init__.py | 1 - addons/project_hr_expense/__init__.py | 1 - addons/project_sale_expense/__init__.py | 1 - addons/sale_expense_margin/__init__.py | 1 - 4 files changed, 4 deletions(-) diff --git a/addons/hr_skills/__init__.py b/addons/hr_skills/__init__.py index a236ada19bb..4e9b019bd7a 100644 --- a/addons/hr_skills/__init__.py +++ b/addons/hr_skills/__init__.py @@ -5,4 +5,3 @@ from . import controllers from . import models from . import report from . import wizard -from . import tests diff --git a/addons/project_hr_expense/__init__.py b/addons/project_hr_expense/__init__.py index 90b17558ffc..dc5e6b693d1 100644 --- a/addons/project_hr_expense/__init__.py +++ b/addons/project_hr_expense/__init__.py @@ -2,4 +2,3 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. from . import models -from . import tests diff --git a/addons/project_sale_expense/__init__.py b/addons/project_sale_expense/__init__.py index 90b17558ffc..dc5e6b693d1 100644 --- a/addons/project_sale_expense/__init__.py +++ b/addons/project_sale_expense/__init__.py @@ -2,4 +2,3 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. from . import models -from . import tests diff --git a/addons/sale_expense_margin/__init__.py b/addons/sale_expense_margin/__init__.py index 90b17558ffc..dc5e6b693d1 100644 --- a/addons/sale_expense_margin/__init__.py +++ b/addons/sale_expense_margin/__init__.py @@ -2,4 +2,3 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. from . import models -from . import tests