KeyError:“ ir.actions.view”---odoo12

时间:2019-04-25 10:45:21

标签: odoo-12

我已经添加了新的自定义模块,但是完成了错误,所以我避开了具有自定义模块的文件夹,但是错误仍然存​​在,并且服务器根本无法工作 导致此错误的原因是什么

  

“ KeyError:'ir.actions.view'---”

以及如何解决

    2019-04-25 07:50:45,646 14816 ERROR test_new werkzeug: Error on 
    request:
    Traceback (most recent call last):
    File "/home/mohamed/.local/lib/python3.6/site- 
    packages/werkzeug/serving.py", line 270, in run_wsgi
    execute(self.server.app)
    File "/home/mohamed/.local/lib/python3.6/site- 
    packages/werkzeug/serving.py", line 258, in execute
     application_iter = app(environ, start_response)
    File "/home/mohamed/odoo10/odoo/odoo/service/server.py", line 409, 
    in 
   app
    return self.app(e, s)
  File "/home/mohamed/odoo10/odoo/odoo/service/wsgi_server.py", line 
   128, in application
    return application_unproxied(environ, start_response)
  File "/home/mohamed/odoo10/odoo/odoo/service/wsgi_server.py", line 
  117, in application_unproxied
    result = odoo.http.root(environ, start_response)
  File "/home/mohamed/odoo10/odoo/odoo/http.py", line 1318, in __call__
    return self.dispatch(environ, start_response)
  File "/home/mohamed/odoo10/odoo/odoo/http.py", line 1291, in __call__
    return self.app(environ, start_wrapped)
  File "/home/mohamed/.local/lib/python3.6/site- 
  packages/werkzeug/wsgi.py", line 766, in __call__
    return self.app(environ, start_response)
  File "/home/mohamed/odoo10/odoo/odoo/http.py", line 1486, in dispatch
    result = ir_http._dispatch()
  File "/home/mohamed/odoo10/odoo/addons/auth_signup/models/ir_http.py", line 19, in _dispatch
    return super(Http, cls)._dispatch()
  File "/home/mohamed/odoo10/odoo/addons/web_editor/models/ir_http.py", line 22, in _dispatch
    return super(IrHttp, cls)._dispatch()
  File "/home/mohamed/odoo10/odoo/addons/http_routing/models/ir_http.py", line 398, in _dispatch
    result = super(IrHttp, cls)._dispatch()
  File "/home/mohamed/odoo10/odoo/odoo/addons/base/models/ir_http.py", line 207, in _dispatch
    return cls._handle_exception(e)
  File "/home/mohamed/odoo10/odoo/odoo/addons/base/models/ir_http.py", line 177, in _handle_exception
    return request._handle_exception(exception)
  File "/home/mohamed/odoo10/odoo/odoo/http.py", line 774, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/home/mohamed/odoo10/odoo/odoo/http.py", line 312, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/home/mohamed/odoo10/odoo/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/home/mohamed/odoo10/odoo/odoo/addons/base/models/ir_http.py", line 203, in _dispatch
    result = request.dispatch()
  File "/home/mohamed/odoo10/odoo/odoo/http.py", line 833, in dispatch
    r = self._call_function(**self.params)
  File "/home/mohamed/odoo10/odoo/odoo/http.py", line 344, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/mohamed/odoo10/odoo/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/mohamed/odoo10/odoo/odoo/http.py", line 337, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/mohamed/odoo10/odoo/odoo/http.py", line 939, in __call__
    return self.method(*args, **kw)
  File "/home/mohamed/odoo10/odoo/odoo/http.py", line 517, in response_wrap
    response = f(*args, **kw)
  File "/home/mohamed/odoo10/odoo/addons/web/controllers/main.py", line 457, in web_client
    context = request.env['ir.http'].webclient_rendering_context()
  File "/home/mohamed/odoo10/odoo/addons/web/models/ir_http.py", line 17, in webclient_rendering_context
    'menu_data': request.env['ir.ui.menu'].load_menus(request.debug),
  File "<decorator-gen-31>", line 2, in load_menus

  File "/home/mohamed/odoo10/odoo/odoo/tools/cache.py", line 93, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/home/mohamed/odoo10/odoo/odoo/addons/base/models/ir_ui_menu.py", line 233, in load_menus
    menu_roots = self.get_user_roots()
  File "/home/mohamed/odoo10/odoo/odoo/addons/base/models/ir_ui_menu.py", line 203, in get_user_roots
    return self.search([('parent_id', '=', False)])
  File "/home/mohamed/odoo10/odoo/odoo/models.py", line 1561, in search
    res = self._search(args, offset=offset, limit=limit, order=order, count=count)
  File "/home/mohamed/odoo10/odoo/odoo/addons/base/models/ir_ui_menu.py", line 135, in _search
    menus = menus._filter_visible_menus()
  File "/home/mohamed/odoo10/odoo/odoo/addons/base/models/ir_ui_menu.py", line 125, in _filter_visible_menus
    visible_ids = self._visible_menu_ids(request.debug if request else False)
  File "<decorator-gen-28>", line 2, in _visible_menu_ids

  File "/home/mohamed/odoo10/odoo/odoo/tools/cache.py", line 93, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/home/mohamed/odoo10/odoo/odoo/addons/base/models/ir_ui_menu.py", line 94, in _visible_menu_ids
    action_menus = menus.filtered(lambda m: m.action and m.action.exists())
  File "/home/mohamed/odoo10/odoo/odoo/models.py", line 4866, in filtered
    return self.browse([rec.id for rec in self if func(rec)])
  File "/home/mohamed/odoo10/odoo/odoo/models.py", line 4866, in <listcomp>
    return self.browse([rec.id for rec in self if func(rec)])
  File "/home/mohamed/odoo10/odoo/odoo/addons/base/models/ir_ui_menu.py", line 94, in <lambda>
    action_menus = menus.filtered(lambda m: m.action and m.action.exists())
  File "/home/mohamed/odoo10/odoo/odoo/fields.py", line 984, in __get__
    self.determine_value(record)
  File "/home/mohamed/odoo10/odoo/odoo/fields.py", line 1085, in determine_value
    record._prefetch_field(self)
  File "/home/mohamed/odoo10/odoo/odoo/models.py", line 2827, in _prefetch_field
    result = records.read([f.name for f in fs], load='_classic_write')
  File "/home/mohamed/odoo10/odoo/odoo/models.py", line 2765, in read
    self._read_from_database(stored, inherited)
  File "/home/mohamed/odoo10/odoo/odoo/models.py", line 2918, in _read_from_database
    values = [convert(value, target, validate=False) for value in values]
  File "/home/mohamed/odoo10/odoo/odoo/models.py", line 2918, in <listcomp>
    values = [convert(value, target, validate=False) for value in values]
  File "/home/mohamed/odoo10/odoo/odoo/fields.py", line 1996, in convert_to_cache
    if record.env[res_model].browse(int(res_id)).exists():
  File "/home/mohamed/odoo10/odoo/odoo/api.py", line 821, in __getitem__
    return self.registry[model_name]._browse((), self)
  File "/home/mohamed/odoo10/odoo/odoo/modules/registry.py", line 176, in __getitem__
    return self.models[model_name]
KeyError: 'ir.actions.view' - - -
....

我已经添加了新的自定义模块,但是完成了错误,所以我避开了具有自定义模块的文件夹,但是错误仍然存​​在,服务器根本无法工作 导致此错误的原因是什么

  

“ KeyError:'ir.actions.view'---”

以及如何解决

0 个答案:

没有答案