summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odoo/tools/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/tools/config.py b/odoo/tools/config.py
index e703ee33ad9..f6e186f15ab 100644
--- a/odoo/tools/config.py
+++ b/odoo/tools/config.py
@@ -439,7 +439,7 @@ class configmanager(object):
for arg in keys:
# Copy the command-line argument (except the special case for log_handler, due to
# action=append requiring a real default, so we cannot use the my_default workaround)
- if getattr(opt, arg):
+ if getattr(opt, arg, None) is not None:
self.options[arg] = getattr(opt, arg)
# ... or keep, but cast, the config file value.
elif isinstance(self.options[arg], str) and self.casts[arg].type in optparse.Option.TYPE_CHECKER: