Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0] dbfilter_from_header: RuntimeError: object unbound - - - #2594

Open
danielosser opened this issue Mar 23, 2023 · 1 comment
Open

[16.0] dbfilter_from_header: RuntimeError: object unbound - - - #2594

danielosser opened this issue Mar 23, 2023 · 1 comment

Comments

@danielosser
Copy link

Module

dbfilter_from_header

Describe the bug

after installing module version 16.0.1.0.0 on Odoo 16 Enterprise server error occurs.

Error log

Traceback (most recent call last):
  File "/opt/odoo/.local/lib/python3.9/site-packages/werkzeug/serving.py", line 306, in run_wsgi
    execute(self.server.app)
  File "/opt/odoo/.local/lib/python3.9/site-packages/werkzeug/serving.py", line 294, in execute
    application_iter = app(environ, start_response)
  File "/opt/odoo/odoo16/odoo/http.py", line 1942, in __call__
    request = Request(httprequest)
  File "/opt/odoo/odoo16/odoo/http.py", line 1101, in __init__
    self.session, self.db = self._get_session_and_dbname()
  File "/opt/odoo/odoo16/odoo/http.py", line 1133, in _get_session_and_dbname
    if session.db and db_filter([session.db], host=host):
  File "/opt/odoo/shared/odoo16/development/oca_server_tools/dbfilter_from_header/override.py", line 17, in db_filter
    httprequest = http.request.httprequest
  File "/opt/odoo/.local/lib/python3.9/site-packages/werkzeug/local.py", line 348, in __getattr__
    return getattr(self._get_current_object(), name)
  File "/opt/odoo/.local/lib/python3.9/site-packages/werkzeug/local.py", line 307, in _get_current_object
    return self.__local()
  File "/opt/odoo/.local/lib/python3.9/site-packages/werkzeug/local.py", line 137, in _lookup
    raise RuntimeError("object unbound")
RuntimeError: object unbound - - -
@danielosser danielosser changed the title [16.0] dbfilter_from_header: error [16.0] dbfilter_from_header: RuntimeError: object unbound - - - Mar 23, 2023
@iTech-eg
Copy link

any solution about this issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants