[FIX] http: avoid crash in web/database/selector when selecting invalid database (#17830)
This commit is contained in:
committed by
Raphael Collet
parent
8108904247
commit
16ebec2324
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user