Odoo中文社区可以通过以下三个域名访问:shine-it.net , odoocn.org,odoo.net.cn

原论坛用户的基本信息和发帖这里都予以保留,请注意:原论坛用户无需重新注册新用户,但是您的密码需要重置

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

在Ununtu Server12.04安装了Odoo9.0,启动服务后,进入127.0.0.1后台报错!!!



  • 如题,源代码是在github上下载的9.0,安装教程参照了论坛上的方法。VMBox里面安装的Odoo9.0,端口转发是8069——>80,5432———>5400<br />打开浏览器输入127.0.0.1服务器报错,错误信息如下:<br /><br />2015-10-15 06:57:35,309 2338 INFO test openerp.modules.loading: loading base/security/base_security.xml<br />2015-10-15 06:57:35,342 2338 INFO test werkzeug: 10.0.2.2 - - [15/Oct/2015 06:57:35] "GET / HTTP/1.1" 500 -<br />2015-10-15 06:57:35,369 2338 ERROR test werkzeug: Error on request:<br />Traceback (most recent call last):<br />  File "/usr/share/pyshared/werkzeug/serving.py", line 159, in run_wsgi<br />    execute(app)<br />  File "/usr/share/pyshared/werkzeug/serving.py", line 146, in execute<br />    application_iter = app(environ, start_response)<br />  File "/home/mes/odoo-9.0/openerp/service/server.py", line 245, in app<br />    return self.app(e, s)<br />  File "/home/mes/odoo-9.0/openerp/service/wsgi_server.py", line 184, in application<br />    return application_unproxied(environ, start_response)<br />  File "/home/mes/odoo-9.0/openerp/service/wsgi_server.py", line 170, in application_unproxied<br />    result = handler(environ, start_response)<br />  File "/home/mes/odoo-9.0/openerp/http.py", line 1416, in call<br />    return self.dispatch(environ, start_response)<br />  File "/home/mes/odoo-9.0/openerp/http.py", line 1390, in call<br />    return self.app(environ, start_wrapped)<br />  File "/usr/share/pyshared/werkzeug/wsgi.py", line 411, in call<br />    return self.app(environ, start_response)<br />  File "/home/mes/odoo-9.0/openerp/http.py", line 1565, in dispatch<br />    ir_http = request.registry['ir.http']<br />  File "/home/mes/odoo-9.0/openerp/http.py", line 354, in registry<br />    return openerp.modules.registry.RegistryManager.get(self.db) if self.db else None<br />  File "/home/mes/odoo-9.0/openerp/modules/registry.py", line 335, in get<br />    update_module)<br />  File "/home/mes/odoo-9.0/openerp/modules/registry.py", line 366, in new<br />    openerp.modules.load_modules(registry._db, force_demo, status, update_module)<br />  File "/home/mes/odoo-9.0/openerp/modules/loading.py", line 279, in load_modules<br />    loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=update_module, report=report)<br />  File "/home/mes/odoo-9.0/openerp/modules/loading.py", line 156, in load_module_graph<br />    _load_data(cr, module_name, idref, mode, kind='data')<br />  File "/home/mes/odoo-9.0/openerp/modules/loading.py", line 98, in _load_data<br />    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)<br />  File "/home/mes/odoo-9.0/openerp/tools/convert.py", line 852, in convert_file<br />    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)<br />  File "/home/mes/odoo-9.0/openerp/tools/convert.py", line 939, in convert_xml_import<br />    obj.parse(doc.getroot(), mode=mode)<br />  File "/home/mes/odoo-9.0/openerp/tools/convert.py", line 802, in parse<br />    self.parse(rec, mode)<br />  File "/home/mes/odoo-9.0/openerp/tools/convert.py", line 805, in parse<br />    self._tags[rec.tag](self.cr, rec, de, mode=mode)<br />  File "/home/mes/odoo-9.0/openerp/tools/convert.py", line 709, in _tag_record<br />    id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/addons/base/ir/ir_model.py", line 1105, in _update<br />    res_id = model_obj.create(cr, uid, values, context=context)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 729, in create<br />    res = super(groups_view, self).create(cr, uid, values, context)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 621, in create<br />    self.write(cr, uid, [gid], {'users': users}, context)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 736, in write<br />    res = super(groups_view, self).write(cr, uid, ids, values, context)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 625, in write<br />    res = super(groups_implied, self).write(cr, uid, ids, values, context)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 117, in write<br />    res = super(res_groups, self).write(cr, uid, ids, vals, context=context)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 345, in old_api<br />    result = method(recs, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/models.py", line 3801, in write<br />    self._write(old_vals)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 221, in wrapper<br />    return new_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 538, in new_api<br />    result = method(self._model, cr, uid, self.ids, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/models.py", line 3849, in _write<br />    result = self.store_get_values(cr, user, ids, vals.keys(), context) or []<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/models.py", line 4364, in store_get_values<br />    target_id_results[target_func_id] = [i for i in store_trigger[target_ids_func](self, cr, SUPERUSER_ID, ids, context) if i]<br />  File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 171, in _get_users_from_group<br />    groups = [g for g in groups if g == group_user or group_user in g.trans_implied_ids]<br />  File "/home/mes/odoo-9.0/openerp/models.py", line 5573, in contains<br />    raise TypeError("Mixing apples and oranges: %s in %s" % (item, self))<br />ParseError: "Mixing apples and oranges: None in res.groups(41, 40)" while parsing /home/mes/odoo-9.0/openerp/addons/base/security/base_security.xml:18, near<br /><record model="res.groups" id="group_system"><br />            <field name="name">Settings</field><br />            <field name="implied_ids" eval="[(4, ref('group_erp_manager'))]"/><br />            <field name="users" eval="[(4, ref('base.user_root'))]"/><br />        </record><br /><br />还请大神帮忙看看,源码没有改过。



  • 如题,源代码是在github上下载的9.0,安装教程参照了论坛上的方法。VMBox里面安装的Odoo9.0,端口转发是8069——>80,5432———>5400<br />打开浏览器输入127.0.0.1服务器报错,错误信息如下:<br /><br />2015-10-15 06:57:35,309 2338 INFO test openerp.modules.loading: loading base/security/base_security.xml<br />2015-10-15 06:57:35,342 2338 INFO test werkzeug: 10.0.2.2 - - [15/Oct/2015 06:57:35] "GET / HTTP/1.1" 500 -<br />2015-10-15 06:57:35,369 2338 ERROR test werkzeug: Error on request:<br />Traceback (most recent call last):<br />  File "/usr/share/pyshared/werkzeug/serving.py", line 159, in run_wsgi<br />    execute(app)<br />  File "/usr/share/pyshared/werkzeug/serving.py", line 146, in execute<br />    application_iter = app(environ, start_response)<br />  File "/home/mes/odoo-9.0/openerp/service/server.py", line 245, in app<br />    return self.app(e, s)<br />  File "/home/mes/odoo-9.0/openerp/service/wsgi_server.py", line 184, in application<br />    return application_unproxied(environ, start_response)<br />  File "/home/mes/odoo-9.0/openerp/service/wsgi_server.py", line 170, in application_unproxied<br />    result = handler(environ, start_response)<br />  File "/home/mes/odoo-9.0/openerp/http.py", line 1416, in call<br />    return self.dispatch(environ, start_response)<br />  File "/home/mes/odoo-9.0/openerp/http.py", line 1390, in call<br />    return self.app(environ, start_wrapped)<br />  File "/usr/share/pyshared/werkzeug/wsgi.py", line 411, in call<br />    return self.app(environ, start_response)<br />  File "/home/mes/odoo-9.0/openerp/http.py", line 1565, in dispatch<br />    ir_http = request.registry['ir.http']<br />  File "/home/mes/odoo-9.0/openerp/http.py", line 354, in registry<br />    return openerp.modules.registry.RegistryManager.get(self.db) if self.db else None<br />  File "/home/mes/odoo-9.0/openerp/modules/registry.py", line 335, in get<br />    update_module)<br />  File "/home/mes/odoo-9.0/openerp/modules/registry.py", line 366, in new<br />    openerp.modules.load_modules(registry._db, force_demo, status, update_module)<br />  File "/home/mes/odoo-9.0/openerp/modules/loading.py", line 279, in load_modules<br />    loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=update_module, report=report)<br />  File "/home/mes/odoo-9.0/openerp/modules/loading.py", line 156, in load_module_graph<br />    _load_data(cr, module_name, idref, mode, kind='data')<br />  File "/home/mes/odoo-9.0/openerp/modules/loading.py", line 98, in _load_data<br />    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)<br />  File "/home/mes/odoo-9.0/openerp/tools/convert.py", line 852, in convert_file<br />    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)<br />  File "/home/mes/odoo-9.0/openerp/tools/convert.py", line 939, in convert_xml_import<br />    obj.parse(doc.getroot(), mode=mode)<br />  File "/home/mes/odoo-9.0/openerp/tools/convert.py", line 802, in parse<br />    self.parse(rec, mode)<br />  File "/home/mes/odoo-9.0/openerp/tools/convert.py", line 805, in parse<br />    self._tags[rec.tag](self.cr, rec, de, mode=mode)<br />  File "/home/mes/odoo-9.0/openerp/tools/convert.py", line 709, in _tag_record<br />    id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/addons/base/ir/ir_model.py", line 1105, in _update<br />    res_id = model_obj.create(cr, uid, values, context=context)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 729, in create<br />    res = super(groups_view, self).create(cr, uid, values, context)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 621, in create<br />    self.write(cr, uid, [gid], {'users': users}, context)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 736, in write<br />    res = super(groups_view, self).write(cr, uid, ids, values, context)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 625, in write<br />    res = super(groups_implied, self).write(cr, uid, ids, values, context)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 117, in write<br />    res = super(res_groups, self).write(cr, uid, ids, vals, context=context)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 345, in old_api<br />    result = method(recs, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/models.py", line 3801, in write<br />    self._write(old_vals)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 221, in wrapper<br />    return new_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 538, in new_api<br />    result = method(self._model, cr, uid, self.ids, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/models.py", line 3849, in _write<br />    result = self.store_get_values(cr, user, ids, vals.keys(), context) or []<br />  File "/home/mes/odoo-9.0/openerp/api.py", line 223, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/home/mes/odoo-9.0/openerp/models.py", line 4364, in store_get_values<br />    target_id_results[target_func_id] = [i for i in store_trigger[target_ids_func](self, cr, SUPERUSER_ID, ids, context) if i]<br />  File "/home/mes/odoo-9.0/openerp/addons/base/res/res_users.py", line 171, in _get_users_from_group<br />    groups = [g for g in groups if g == group_user or group_user in g.trans_implied_ids]<br />  File "/home/mes/odoo-9.0/openerp/models.py", line 5573, in contains<br />    raise TypeError("Mixing apples and oranges: %s in %s" % (item, self))<br />ParseError: "Mixing apples and oranges: None in res.groups(41, 40)" while parsing /home/mes/odoo-9.0/openerp/addons/base/security/base_security.xml:18, near<br /><record model="res.groups" id="group_system"><br />            <field name="name">Settings</field><br />            <field name="implied_ids" eval="[(4, ref('group_erp_manager'))]"/><br />            <field name="users" eval="[(4, ref('base.user_root'))]"/><br />        </record><br /><br />还请大神帮忙看看,源码没有改过。



  • 我前几天看到过 ,有个9.0的版本有bug,<br />创建数据库 就会 报这个错:<br /><br />File "/opt/odoo/odoo-server/openerp/models.py", line 5573, in contains<br />    raise TypeError("Mixing apples and oranges: %s in %s" % (item, self))<br />ParseError: "Mixing apples and oranges: None in res.groups(38, 37)" while parsing /opt/odoo/odoo-server/openerp/addons/base/security/base_security.xml:18, near<br /><record model="res.groups" id="group_system"><br />            <field name="name">Settings</field><br />            <field name="implied_ids" eval="[(4, ref('group_erp_manager'))]"/><br />            <field name="users" eval="[(4, ref('base.user_root'))]"/><br />        </record><br /><br />后来更新了下,能创建数据库了,<br />不过有其他别的问题。<br /><br />另外,你这个9.0是新安装的吧,没有8.0历史遗留的数据库吧。<br /><br />



  • 恩,新安装的,不知道是怎么回事。另外问一下github上的master是10.0吗?现在还是玩8.0吧,9.0等稳定版再上了,折腾了这几天安装伤不起啊。


登录后回复
 

与 Odoo 中文社区 的连接断开,我们正在尝试重连,请耐心等待