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):