# HG changeset patch # User Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr> # Date 1631022863 -7200 # Tue Sep 07 15:54:23 2021 +0200 # Node ID b5876b2ee1ef40582b1b0684011a9af5e337a0ad # Parent 19da430ab38b8e45dbfa82be40d1792ea5135bb8 🚑 correctly fix default developer mode options diff --git a/NEWS.rst b/NEWS.rst --- a/NEWS.rst +++ b/NEWS.rst @@ -2,6 +2,11 @@ History ======= +10.0.1 +------ + +Fix setting default developer mode. + 10.0.0 ------ diff --git a/odoo_scripts/docker_dev_start.py b/odoo_scripts/docker_dev_start.py --- a/odoo_scripts/docker_dev_start.py +++ b/odoo_scripts/docker_dev_start.py @@ -799,14 +799,14 @@ if dev: if odoo_type in ("odoo10", "odoo11", "odoo13"): # automatically add reload if not already asks for - if not any(opt not in dev_opts for opt in ("all", "reload")): + if not any(opt in dev_opts for opt in ("all", "reload")): dev_opts.append("reload") # XXX pdb should not be run if not interactive # add pdb if no pubd, wdb, ipdb, pdb or all # the list of available options differs by odoo version and can be # seen with odoo --help, available with --odoo-help if not any( - debugger not in dev_opts + debugger in dev_opts for debugger in ("pubd", "wdb", "ipdb", "pdb", "all") ): dev_opts.append("pdb")