diff options
| author | XavierDo <xdo@odoo.com> | 2018-10-09 09:04:01 +0000 |
|---|---|---|
| committer | XavierDo <xdo@odoo.com> | 2018-10-09 09:19:30 +0000 |
| commit | 70e604a8fa159bcb6d6a06bc95c9779c7b746969 (patch) | |
| tree | 6fd7ff48c0a58d68c37fbc4abb19eb499b39e2da | |
| parent | 9f209dd77ea71cd45a9eab7f1d7424a81e0f9489 (diff) | |
[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
| -rw-r--r-- | odoo/tools/config.py | 3 |
1 files changed, 3 insertions, 0 deletions
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' |
