From 4959a655eb51ab14fbe2a64b1830cbd22dae9ee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 26 Dec 2022 22:37:07 +0100 Subject: [PATCH] Do not allow to activate tests module in configuration wizard Closes #11878 --- trytond/trytond/ir/module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/trytond/trytond/ir/module.py b/trytond/trytond/ir/module.py index bb727b2bd0..29b6b71b08 100644 --- a/trytond/trytond/ir/module.py +++ b/trytond/trytond/ir/module.py @@ -628,5 +628,6 @@ class ModuleConfigStart(ModelView): modules = fields.Many2Many( 'ir.module', None, None, "Modules", domain=[ + ('name', '!=', 'tests'), ('state', '=', 'not activated'), ])