作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在Ubuntu 14.04中使用odoo v9社区,所有工作完成后安装完美完成。
但是当我安装 odoo 的网站模块并从 odoo 注销后,它显示以下错误:“500内部服务器错误”和我的日志:
"Traceback (most recent call last):
File "/opt/odoo96/addons/website/models/ir_http.py", line 242, in _handle_exception
response = super(ir_http, self)._handle_exception(exception)
File "/opt/odoo96/openerp/addons/base/ir/ir_http.py", line 147, in _handle_exception
return request._handle_exception(exception)
File "/opt/odoo96/openerp/http.py", line 738, in _handle_exception
return super(HttpRequest, self)._handle_exception(exception)
File "/opt/odoo96/openerp/addons/base/ir/ir_http.py", line 172, in _dispatch
result = request.dispatch()
File "/opt/odoo96/openerp/http.py", line 769, in dispatch
r = self._call_function(**self.params)
File "/opt/odoo96/openerp/http.py", line 316, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo96/openerp/service/model.py", line 118, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo96/openerp/http.py", line 309, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo96/openerp/http.py", line 888, in __call__
return self.method(*args, **kw)
File "/opt/odoo96/openerp/http.py", line 466, in response_wrap
response = f(*args, **kw)
File "/opt/odoo96/addons/website/controllers/main.py", line 44, in index
return request.registry['ir.http'].reroute(first_menu.url)
File "/opt/odoo96/addons/website/models/ir_http.py", line 209, in reroute
return self._dispatch()
File "/opt/odoo96/addons/website/models/ir_http.py", line 175, in _dispatch
key = self.get_page_key()
File "/opt/odoo96/addons/website/models/ir_http.py", line 94, in get_page_key
return (self._name, "cache", request.uid, request.lang, request.httprequest.full_path)
AttributeError: 'Request' object has no attribute 'full_path'"
但是当我卸载网络模块时,一切又恢复正常了。我该如何解决这个问题?
谢谢
最佳答案
这是一个依赖性问题。安装更新版本的 werkzeug。
https://github.com/odoo/odoo/issues/10184
pip install werkzeug==0.9.4
应该可以解决问题。
关于python - 错误 openerp.addons.website.models.ir_http : 500 Internal Server Error: after logout from odoo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34202584/
我在Ubuntu 14.04中使用odoo v9社区,所有工作完成后安装完美完成。 但是当我安装 odoo 的网站模块并从 odoo 注销后,它显示以下错误:“500内部服务器错误”和我的日志: "T
我是一名优秀的程序员,十分优秀!