From 8fae7bc14234d7a11daa1a2969a4158ea096d329 Mon Sep 17 00:00:00 2001 From: eLBati Date: Tue, 26 Oct 2021 15:41:05 +0200 Subject: [PATCH] FIX queue_job avoiding AccessDenied when loading the module in an instance with list_db = False The scenario is a multi database environment where you can't set db_name as the databases change frequently and you use dbfilter to allow users to access their DB according to domain --- queue_job/jobrunner/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queue_job/jobrunner/runner.py b/queue_job/jobrunner/runner.py index 2314510731..25823a9973 100644 --- a/queue_job/jobrunner/runner.py +++ b/queue_job/jobrunner/runner.py @@ -401,7 +401,7 @@ def get_db_names(self): if config["db_name"]: db_names = config["db_name"].split(",") else: - db_names = odoo.service.db.exp_list(True) + db_names = odoo.service.db.list_dbs(True) return db_names def close_databases(self, remove_jobs=True):