From 8c682544ea616af0a60638ece2ed0574760a31c8 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Fri, 28 Sep 2018 15:28:21 +0200 Subject: [PATCH] [FIX] config: add a config dest to test-enable option Commit 76c5389 removed the option dest for test-enable leading to a traceback when trying to save the configuration. This was due to the fact that the options dict was sorted while containing a None key because of the missing dest. --- odoo/tools/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/odoo/tools/config.py b/odoo/tools/config.py index 6adb13ca81c..778fcc1def1 100644 --- a/odoo/tools/config.py +++ b/odoo/tools/config.py @@ -157,6 +157,7 @@ class configmanager(object): group.add_option("--test-file", dest="test_file", my_default=False, help="Launch a python test file.") group.add_option("--test-enable", action="callback", callback=self._test_enable_callback, + dest='test_enable', help="Enable unit tests.") group.add_option("--test-tags", dest="test_tags", help="Comma separated list of tags to filter which tests to excute. Enable unit tests if set.")