[FIX] core: always better to not use undefined variables

This commit is contained in:
Christophe Simonis
2015-09-01 18:02:19 +02:00
parent 042f05f2e5
commit 396d58ef3f
+1 -1
View File
@@ -300,7 +300,7 @@ def exp_db_exist(db_name):
return bool(openerp.sql_db.db_connect(db_name))
def list_dbs(force=False):
if not openerp.tools.config['list_db'] and not document:
if not openerp.tools.config['list_db'] and not force:
raise openerp.exceptions.AccessDenied()
chosen_template = openerp.tools.config['db_template']
templates_list = tuple(set(['postgres', chosen_template]))