diff --git a/NEWS.rst b/NEWS.rst index 19da430ab38b8e45dbfa82be40d1792ea5135bb8_TkVXUy5yc3Q=..b5876b2ee1ef40582b1b0684011a9af5e337a0ad_TkVXUy5yc3Q= 100644 --- 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 index 19da430ab38b8e45dbfa82be40d1792ea5135bb8_b2Rvb19zY3JpcHRzL2RvY2tlcl9kZXZfc3RhcnQucHk=..b5876b2ee1ef40582b1b0684011a9af5e337a0ad_b2Rvb19zY3JpcHRzL2RvY2tlcl9kZXZfc3RhcnQucHk= 100755 --- a/odoo_scripts/docker_dev_start.py +++ b/odoo_scripts/docker_dev_start.py @@ -799,10 +799,10 @@ 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( @@ -803,10 +803,10 @@ 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")