Odoo Install -AttributeError: 'ir.http' object has no attribute 'webclient_rendering_context'

问题描述 投票:0回答:0

当我尝试在 pycharm 终端中运行 odoo 时出现此错误。在pycharm中配置好odoo和python之后。当我进入 postgres 控制台时,数据库已创建。这是完整的错误参考。

Traceback (most recent call last):
  File "/home/paul/odoo16/odoo/odoo/http.py", line 1988, in __call__
    response = request._serve_db()
  File "/home/paul/odoo16/odoo/odoo/http.py", line 1584, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File "/home/paul/odoo16/odoo/odoo/service/model.py", line 134, in retrying
    result = func()
  File "/home/paul/odoo16/odoo/odoo/http.py", line 1611, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
  File "/home/paul/odoo16/odoo/odoo/http.py", line 1724, in dispatch
    return self.request.registry['ir.http']._dispatch(endpoint)
  File "/home/paul/odoo16/odoo/odoo/addons/base/models/ir_http.py", line 154, in _dispatch
    result = endpoint(**request.params)
  File "/home/paul/odoo16/odoo/odoo/http.py", line 699, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "/home/paul/odoo16/odoo/addons/web/controllers/home.py", line 57, in web_client
    context = request.env['ir.http'].webclient_rendering_context()
AttributeError: 'ir.http' object has no attribute 'webclient_rendering_context'

我需要一些帮助来修复这个错误

python postgresql ubuntu pycharm odoo
© www.soinside.com 2019 - 2024. All rights reserved.