全新的odoo安装

时间:2017-04-20 19:11:09

标签: odoo

enter image description here我安装了全新的odoo 10版本并收到此错误。我有2个odoo安装与2环保主义者odoo9工作正常,但当我切换到odoo10刚刚运行数据库并尝试连接到localhost后得到此错误。

    2017-04-20 19:20:21,036 5916 ERROR 10_blabla werkzeug: Error on request:
Traceback (most recent call last):
  File "/home/grf/virtualenv/odoo/10.0/lib/python2.7/site-packages/werkzeug/serving.py", line 193, in run_wsgi
    execute(self.server.app)
  File "/home/grf/virtualenv/odoo/10.0/lib/python2.7/site-packages/werkzeug/serving.py", line 181, in execute
    application_iter = app(environ, start_response)
  File "/home/grf/vcs/odoo/odoo/service/server.py", line 246, in app
    return self.app(e, s)
  File "/home/grf/vcs/odoo/odoo/service/wsgi_server.py", line 184, in application
    return application_unproxied(environ, start_response)
  File "/home/grf/vcs/odoo/odoo/service/wsgi_server.py", line 170, in application_unproxied
    result = handler(environ, start_response)
  File "/home/grf/vcs/odoo/odoo/http.py", line 1306, in __call__
    return self.dispatch(environ, start_response)
  File "/home/grf/vcs/odoo/odoo/http.py", line 1280, in __call__
    return self.app(environ, start_wrapped)
  File "/home/grf/virtualenv/odoo/10.0/lib/python2.7/site-packages/werkzeug/wsgi.py", line 599, in __call__
    return self.app(environ, start_response)
  File "/home/grf/vcs/odoo/odoo/http.py", line 1471, in dispatch
    result = ir_http._dispatch()
  File "/home/grf/vcs/odoo/odoo/addons/base/ir/ir_http.py", line 199, in _dispatch
    return cls._handle_exception(e)
  File "/home/grf/vcs/odoo/odoo/addons/base/ir/ir_http.py", line 169, in _handle_exception
    return request._handle_exception(exception)
  File "/home/grf/vcs/odoo/odoo/http.py", line 766, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/home/grf/vcs/odoo/odoo/addons/base/ir/ir_http.py", line 195, in _dispatch
    result = request.dispatch()
  File "/home/grf/vcs/odoo/odoo/http.py", line 825, in dispatch
    r = self._call_function(**self.params)
  File "/home/grf/vcs/odoo/odoo/http.py", line 331, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/grf/vcs/odoo/odoo/service/model.py", line 119, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/grf/vcs/odoo/odoo/http.py", line 324, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/grf/vcs/odoo/odoo/http.py", line 933, in __call__
    return self.method(*args, **kw)
  File "/home/grf/vcs/odoo/odoo/http.py", line 504, in response_wrap
    response = f(*args, **kw)
  File "/home/grf/vcs/odoo/addons/web/controllers/main.py", line 440, in web_client
    context = request.env['ir.http'].webclient_rendering_context()
AttributeError: 'ir.http' object has no attribute 'webclient_rendering_context'

更新 还有1个错误

2017-04-21 06:13:04,897 4479 ERROR newdb odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
  File "/home/grf/vcs/odoo/odoo/modules/registry.py", line 78, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 339, in load_modules
    loaded_modules, update_module)
  File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 237, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 131, in load_module_graph
    model_names = registry.load(cr, package)
  File "/home/grf/vcs/odoo/odoo/modules/registry.py", line 261, in load
    model = cls._build_model(self, cr)
  File "/home/grf/vcs/odoo/odoo/models.py", line 540, in _build_model
    raise TypeError("Model %r inherits from non-existing model %r." % (name, parent))
TypeError: Model 'ir.qweb.widget.precision' inherits from non-existing model 'ir.qweb.widget'.
2017-04-21 06:13:04,900 4479 CRITICAL newdb odoo.service.server: Failed to initialize database `newdb`.
Traceback (most recent call last):
  File "/home/grf/vcs/odoo/odoo/service/server.py", line 898, in preload_registries
    registry = Registry.new(dbname, update_module=update_module)
  File "/home/grf/vcs/odoo/odoo/modules/registry.py", line 78, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 339, in load_modules
    loaded_modules, update_module)
  File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 237, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/home/grf/vcs/odoo/odoo/modules/loading.py", line 131, in load_module_graph
    model_names = registry.load(cr, package)
  File "/home/grf/vcs/odoo/odoo/modules/registry.py", line 261, in load
    model = cls._build_model(self, cr)
  File "/home/grf/vcs/odoo/odoo/models.py", line 540, in _build_model
    raise TypeError("Model %r inherits from non-existing model %r." % (name, parent))
TypeError: Model 'ir.qweb.widget.precision' inherits from non-existing model 'ir.qweb.widget'.

3 个答案:

答案 0 :(得分:0)

清除浏览器Cookie然后检查。

答案 1 :(得分:0)

只需检查您的配置文件的端口,并检查它正在使用正确的数据库的天气,或者没有意味着您已创建新数据库的odoo10。在运行odoo10时检查数据库并确保它只使用您为运行odoo10而创建的数据库。

您可以在配置文件中输入<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Android'"> <DebuggerFlavor>AndroidEmulator</DebuggerFlavor> <AndroidEmulatorID>AndroidDevice;Device</AndroidEmulatorID> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Android'"> <DebuggerFlavor>AndroidEmulator</DebuggerFlavor> <AndroidEmulatorID>AndroidDevice;Device</AndroidEmulatorID> </PropertyGroup> </Project> 字段,以确保服务器在新数据库上运行。在运行新服务器之前,请确保从最后一个运行odoo9的数据库注销

如果你还面临问题,请告诉我。我会尽力解决你的问题。

答案 2 :(得分:0)

找到它,odoo找不到drop table if exists x go create table x(id int identity primary key, a varchar(20), b varchar(20)) insert into x(a,b) values ('1','2'),('2','4') go Create or Alter PROC [dbo].[USP_ALTERTABLECOLUMNS] AS BEGIN ALTER TABLE x ALTER COLUMN A TINYINT NOT NULL; ALTER TABLE x ALTER COLUMN B TINYINT NOT NULL; END go exec [USP_ALTERTABLECOLUMNS] go select * from x 模型。 检查您的odoo插件文件夹。 检查是否为odoo-10。 尝试使用--load = web命令行参数运行。