From 96af2823cba1739cbf1d3484dbd2d5e28e59b8a5 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Thu, 3 Aug 2017 17:05:47 +0200 Subject: [PATCH] [FIX] http/db: fix bug introduced in b34e00540e2 b34e00540e2 was not properly checking if db_name option was in use --- odoo/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/http.py b/odoo/http.py index e66497ccdba..a0da09bb795 100644 --- a/odoo/http.py +++ b/odoo/http.py @@ -1491,7 +1491,7 @@ def db_filter(dbs, httprequest=None): if odoo.tools.config['dbfilter']: r = odoo.tools.config['dbfilter'].replace('%h', h).replace('%d', d) dbs = [i for i in dbs if re.match(r, i)] - else: + elif odoo.tools.config['db_name']: # In case --db-filter is not provided and --database is passed, Odoo will # use the value of --database as a comma seperated list of exposed databases. exposed_dbs = set(db.strip() for db in odoo.tools.config['db_name'].split(','))