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

Create a standalone Owl application #9052

Open
nilgoyette opened this issue Apr 29, 2024 · 0 comments
Open

Create a standalone Owl application #9052

nilgoyette opened this issue Apr 29, 2024 · 0 comments
Assignees

Comments

@nilgoyette
Copy link

I tried following the Create a standalone Owl application guide and it fails with the following error:

web-1   | 2024-04-29 13:30:33,544 1 ERROR odoo_db odoo.http: Exception during request handling. 
web-1   | Traceback (most recent call last):
web-1   |   File "/usr/lib/python3/dist-packages/odoo/http.py", line 2189, in __call__
web-1   |     response = request._serve_db()
web-1   |   File "/usr/lib/python3/dist-packages/odoo/http.py", line 1765, in _serve_db
web-1   |     return service_model.retrying(self._serve_ir_http, self.env)
web-1   |   File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 133, in retrying
web-1   |     result = func()
web-1   |   File "/usr/lib/python3/dist-packages/odoo/http.py", line 1792, in _serve_ir_http
web-1   |     response = self.dispatcher.dispatch(rule.endpoint, args)
web-1   |   File "/usr/lib/python3/dist-packages/odoo/http.py", line 1909, in dispatch
web-1   |     return self.request.registry['ir.http']._dispatch(endpoint)
web-1   |   File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_http.py", line 235, in _dispatch
web-1   |     response = super()._dispatch(endpoint)
web-1   |   File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
web-1   |     result = endpoint(**request.params)
web-1   |   File "/usr/lib/python3/dist-packages/odoo/http.py", line 722, in route_wrapper
web-1   |     result = endpoint(self, *args, **params_ok)
web-1   |   File "/mnt/extra-addons/imeka/controllers/controllers.py", line 9, in standalone_app
web-1   |     {'session_info': request.env['ir.http'].get_frontend_session_info()}
web-1   |   File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_http.py", line 394, in get_frontend_session_info
web-1   |     'is_website_user': request.env.user.id == request.website.user_id.id,
web-1   | AttributeError: 'Request' object has no attribute 'website'

I can't find this error by searching on google and there's nothing related to "website" in the guide so I don't know how to fix this error.

Moreover, &lt;!DOCTYPE html&gt; should probably be written as <!DOCTYPE html>, no?

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