[FIX] base_remote: RunTime error is raised on tests
parent
846d0bc70f
commit
30e1bc3b67
|
@ -13,6 +13,6 @@ class Base(models.AbstractModel):
|
|||
def remote(self):
|
||||
try:
|
||||
remote_addr = http.request.httprequest.remote_addr
|
||||
except (KeyError, AttributeError):
|
||||
except (KeyError, AttributeError, RuntimeError):
|
||||
return self.env["res.remote"]
|
||||
return self.env["res.remote"]._get_remote(remote_addr)
|
||||
|
|
Loading…
Reference in New Issue