[FIX] http/db: fix bug introduced in b34e00540e
b34e00540e was not properly checking if db_name option was in use
This commit is contained in:
+1
-1
@@ -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(','))
|
||||
|
||||
Reference in New Issue
Block a user