From 70e604a8fa159bcb6d6a06bc95c9779c7b746969 Mon Sep 17 00:00:00 2001 From: XavierDo Date: Tue, 9 Oct 2018 09:04:01 +0000 Subject: [PATCH] [FIX] core: correctly read test_tags in config file The test_tags is stored as None by default in the config file, but 'None' is interpreted as a string when read. This is a dirty fix in order to avoid to launch tests when using a config file, we should do something cleaner in master and refactor part of this code (substitute 'None' in the load method as it is done for boolean) closes #27498 closes odoo/odoo#27564 --- odoo/tools/config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/odoo/tools/config.py b/odoo/tools/config.py index 0f4c0d0761d..5e406d036f2 100644 --- a/odoo/tools/config.py +++ b/odoo/tools/config.py @@ -394,6 +394,9 @@ class configmanager(object): # the same for the pidfile if self.options['pidfile'] in ('None', 'False'): self.options['pidfile'] = False + # the same for the test_tags + if self.options['test_tags'] == 'None': + self.options['test_tags'] = None # and the server_wide_modules if self.options['server_wide_modules'] in ('', 'None', 'False'): self.options['server_wide_modules'] = 'base,web'