From 16ebec2324da695816c852b3270cc9571b6a232b Mon Sep 17 00:00:00 2001 From: Ankit Joshi Date: Tue, 27 Jun 2017 20:22:20 +0530 Subject: [PATCH] [FIX] http: avoid crash in web/database/selector when selecting invalid database (#17830) --- odoo/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/http.py b/odoo/http.py index 03c2bda31b2..1ea60b9194d 100644 --- a/odoo/http.py +++ b/odoo/http.py @@ -366,7 +366,7 @@ class WebRequest(object): use :attr:`.env` """ - return odoo.registry(self.db) if self.db else None + return odoo.registry(self.db) @property def db(self):