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

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

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

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

新手在centos7安装odoo8.0成功,但创建帐套一直错误,怎么破?



  • 在创建帐套的时候,一直出现500 Internal Server Error错误,查看日志发现xml文件出错<br />源码安装,git的最新源码<br /><br />错误信息如下,求解<br /><br />  return encoder(mode, *args + extra)<br />ParseError: "function takes at most 4 arguments (6 given)" while parsing /opt/odoo/odoo/openerp/addons/base/base_data.xml:128, near<br /><record id="public_user" model="res.users"><br />            <field name="name">Public user</field><br />            <field name="login">public</field><br />            <field name="password"/><br />            <!-- Avoid auto-including this demo user in any default group --><br />            <field name="groups_id" eval="[(6,0,[ref('base.group_public')])]"/><br />            <field name="image" type="base64" file="base/static/img/public_user-image.png"/><br />            <field name="partner_id" ref="public_partner"/><br />            <field name="active" eval="False"/><br />        </record><br /><br /><br />如果在base_data.xml文件中注释掉这段代码,可以创建成功,但是进入后创建模块时,只要有groups_id出现的地方,都出现xml错误,只有注释掉才可以,这个是不是程序本身错误呢,还是其他什么原因???请大家帮忙看下,谢谢



  • 在创建帐套的时候,一直出现500 Internal Server Error错误,查看日志发现xml文件出错<br />源码安装,git的最新源码<br /><br />错误信息如下,求解<br /><br />  return encoder(mode, *args + extra)<br />ParseError: "function takes at most 4 arguments (6 given)" while parsing /opt/odoo/odoo/openerp/addons/base/base_data.xml:128, near<br /><record id="public_user" model="res.users"><br />            <field name="name">Public user</field><br />            <field name="login">public</field><br />            <field name="password"/><br />            <!-- Avoid auto-including this demo user in any default group --><br />            <field name="groups_id" eval="[(6,0,[ref('base.group_public')])]"/><br />            <field name="image" type="base64" file="base/static/img/public_user-image.png"/><br />            <field name="partner_id" ref="public_partner"/><br />            <field name="active" eval="False"/><br />        </record><br /><br /><br />如果在base_data.xml文件中注释掉这段代码,可以创建成功,但是进入后创建模块时,只要有groups_id出现的地方,都出现xml错误,只有注释掉才可以,这个是不是程序本身错误呢,还是其他什么原因???请大家帮忙看下,谢谢



  • git checkout 7.0  就没问题,看来不能追新啊,8.0还是有很多不稳定因素,还是用7.0好了



  • 不能肯定,可能是缺个 python包, <br /><br />passlib<br /><br /><br />你要仔细看 log 才能准备定位问题。<br /><br />另外 , 8 是没你这个问题的,我一直追着呢



  • 这个包有安装,<br /><br />包安装如下:<br /><br />Babel (0.9.6)<br />backports.ssl-match-hostname (3.4.0.2)<br />Beaker (1.5.4)<br />chardet (2.0.1)<br />configobj (4.7.2)<br />decorator (3.4.0)<br />docutils (0.12)<br />enum34 (1.0.4)<br />feedparser (5.1.3)<br />iniparse (0.4)<br />Jinja2 (2.7.2)<br />kitchen (1.1.1)<br />lxml (3.2.1)<br />Mako (0.8.1)<br />MarkupSafe (0.11)<br />mock (1.0.1)<br />passlib (1.5.3)<br />Paste (1.7.5.1)<br />PIL (1.1.7)<br />Pillow (2.0.0)<br />pip (7.1.0)<br />psutil (1.2.1)<br />psycogreen (1.0)<br />psycopg2 (2.6)<br />PyChart (1.39)<br />pycountry (1.12)<br />pycurl (7.19.0)<br />pydot (1.0.2)<br />pygobject (3.8.2)<br />pygpgme (0.3)<br />pyliblzma (0.5.3)<br />pyOpenSSL (0.13.1)<br />pyparsing (1.5.6)<br />pyPdf (1.13)<br />python-dateutil (1.5)<br />python-ldap (2.4.15)<br />python-openid (2.2.5)<br />python-stdnum (1.1)<br />pytz (2012d)<br />pyudev (0.15)<br />pyvat (1.3.1)<br />pyxattr (0.5.1)<br />PyYAML (3.11)<br />reportlab (2.5)<br />requests (1.1.0)<br />setuptools (0.9.8)<br />simplejson (3.3.3)<br />six (1.3.0)<br />slip (0.4.0)<br />slip.dbus (0.4.0)<br />Tempita (0.5.1)<br />unittest2 (0.5.1)<br />urlgrabber (3.10)<br />urllib3 (1.5)<br />vatnumber (1.2)<br />vobject (0.8.1rc0)<br />Werkzeug (0.9.1)<br />yum-metadata-parser (1.1.4)



  • 邮件相关的也都出错<br /><br />Traceback (most recent call last):<br />  File "/opt/odoo/odoo/openerp/http.py", line 537, in _handle_exception<br />    return super(JsonRequest, self)._handle_exception(exception)<br />  File "/opt/odoo/odoo/openerp/http.py", line 574, in dispatch<br />    result = self._call_function(**self.params)<br />  File "/opt/odoo/odoo/openerp/http.py", line 310, in _call_function<br />    return checked_call(self.db, *args, **kwargs)<br />  File "/opt/odoo/odoo/openerp/service/model.py", line 113, in wrapper<br />    return f(dbname, *args, **kwargs)<br />  File "/opt/odoo/odoo/openerp/http.py", line 307, in checked_call<br />    return self.endpoint(*a, **kw)<br />  File "/opt/odoo/odoo/openerp/http.py", line 803, in call<br />    return self.method(*args, **kw)<br />  File "/opt/odoo/odoo/openerp/http.py", line 403, in response_wrap<br />    response = f(*args, **kw)<br />  File "/opt/odoo/odoo/addons/web/controllers/main.py", line 948, in call_button<br />    action = self._call_kw(model, method, args, {})<br />  File "/opt/odoo/odoo/addons/web/controllers/main.py", line 936, in _call_kw<br />    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)<br />  File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/opt/odoo/odoo/openerp/addons/base/module/module.py", line 446, in button_immediate_install<br />    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)<br />  File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/opt/odoo/odoo/openerp/addons/base/module/module.py", line 494, in _button_immediate_function<br />    registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)<br />  File "/opt/odoo/odoo/openerp/modules/registry.py", line 370, in new<br />    openerp.modules.load_modules(registry._db, force_demo, status, update_module)<br />  File "/opt/odoo/odoo/openerp/modules/loading.py", line 355, in load_modules<br />    loaded_modules, update_module)<br />  File "/opt/odoo/odoo/openerp/modules/loading.py", line 255, in load_marked_modules<br />    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)<br />  File "/opt/odoo/odoo/openerp/modules/loading.py", line 176, in load_module_graph<br />    _load_data(cr, module_name, idref, mode, kind='data')<br />  File "/opt/odoo/odoo/openerp/modules/loading.py", line 118, in _load_data<br />    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)<br />  File "/opt/odoo/odoo/openerp/tools/convert.py", line 901, in convert_file<br />    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)<br />  File "/opt/odoo/odoo/openerp/tools/convert.py", line 987, in convert_xml_import<br />    obj.parse(doc.getroot(), mode=mode)<br />  File "/opt/odoo/odoo/openerp/tools/convert.py", line 853, in parse<br />    self._tags[rec.tag](self.cr, rec, n, mode=mode)<br />  File "/opt/odoo/odoo/openerp/tools/convert.py", line 755, in _tag_record<br />    f_val = self.id_get(cr, f_ref)<br />  File "/opt/odoo/odoo/openerp/tools/convert.py", line 832, in id_get<br />    res = self.model_id_get(cr, id_str, raise_if_not_found)<br />  File "/opt/odoo/odoo/openerp/tools/convert.py", line 843, in model_id_get<br />    raise_if_not_found=raise_if_not_found)<br />  File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/opt/odoo/odoo/openerp/addons/base/ir/ir_model.py", line 936, in xmlid_to_res_model_res_id<br />    return self.xmlid_lookup(cr, uid, xmlid)[1:3]<br />  File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "<string>", line 2, in xmlid_lookup<br />  File "/opt/odoo/odoo/openerp/tools/cache.py", line 74, in lookup<br />    value = d[key] = self.method(*args, **kwargs)<br />  File "/opt/odoo/odoo/openerp/addons/base/ir/ir_model.py", line 926, in xmlid_lookup<br />    raise ValueError('External ID not found in the system: %s' % (xmlid))<br />ParseError: "External ID not found in the system: mail.group_all_employees" while parsing /opt/odoo/odoo/addons/stock/stock_data.xml:83, near<br /><record model="mail.message" id="module_install_notification"><br />            <field name="model">mail.group</field><br />            <field name="res_id" ref="mail.group_all_employees"/><br />            <field name="type">notification</field><br />            <field name="subtype_id" ref="mail.mt_comment"/><br />            <field name="subject">Warehouse Management application installed!</field><br />            <field name="body">&lt;p&gt;Manage your product inventoy and stock locations: you can control stock moves history and planning,<br />watch your stock valuation, and track production lots (based on serial numbers).&lt;/p&gt;</field><br />        </record>



  • 还有图片的地方都出错,明明已经有PIL包了啊<br /><br />Traceback (most recent call last):<br />  File "/opt/odoo/odoo/openerp/http.py", line 537, in _handle_exception<br />    return super(JsonRequest, self)._handle_exception(exception)<br />  File "/opt/odoo/odoo/openerp/http.py", line 574, in dispatch<br />    result = self._call_function(**self.params)<br />  File "/opt/odoo/odoo/openerp/http.py", line 310, in _call_function<br />    return checked_call(self.db, *args, **kwargs)<br />  File "/opt/odoo/odoo/openerp/service/model.py", line 113, in wrapper<br />    return f(dbname, *args, **kwargs)<br />  File "/opt/odoo/odoo/openerp/http.py", line 307, in checked_call<br />    return self.endpoint(*a, **kw)<br />  File "/opt/odoo/odoo/openerp/http.py", line 803, in call<br />    return self.method(*args, **kw)<br />  File "/opt/odoo/odoo/openerp/http.py", line 403, in response_wrap<br />    response = f(*args, **kw)<br />  File "/opt/odoo/odoo/addons/web/controllers/main.py", line 944, in call_kw<br />    return self._call_kw(model, method, args, kwargs)<br />  File "/opt/odoo/odoo/addons/web/controllers/main.py", line 936, in _call_kw<br />    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)<br />  File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/opt/odoo/odoo/openerp/addons/base/res/res_users.py", line 850, in default_get<br />    values = super(users_view, self).default_get(cr, uid, fields1, context)<br />  File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/opt/odoo/odoo/openerp/api.py", line 336, in old_api<br />    result = method(recs, *args, **kwargs)<br />  File "/opt/odoo/odoo/openerp/models.py", line 1326, in default_get<br />    defaults[name] = field.default(self)<br />  File "/opt/odoo/odoo/openerp/fields.py", line 433, in <lambda><br />    func(recs), recs, validate=False,<br />  File "/opt/odoo/odoo/openerp/fields.py", line 429, in <lambda><br />    func = lambda recs: value(recs._model, recs._cr, recs._uid, recs._context)<br />  File "/opt/odoo/odoo/openerp/addons/base/res/res_users.py", line 267, in _get_default_image<br />    return self.pool['res.partner']._get_default_image(cr, uid, False, colorize=True, context=context)<br />  File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper<br />    return old_api(self, *args, **kwargs)<br />  File "/opt/odoo/odoo/openerp/api.py", line 336, in old_api<br />    result = method(recs, *args, **kwargs)<br />  File "/opt/odoo/odoo/openerp/addons/base/res/res_partner.py", line 323, in _get_default_image<br />    image = tools.image_colorize(image)<br />  File "/opt/odoo/odoo/openerp/tools/image.py", line 190, in image_colorize<br />    image.save(buffer, 'PNG')<br />  File "/usr/lib64/python2.7/site-packages/PIL/Image.py", line 1477, in save<br />    save_handler(self, fp, filename)<br />  File "/usr/lib64/python2.7/site-packages/PIL/PngImagePlugin.py", line 608, in _save<br />    ImageFile._save(im, _idat(fp, chunk), [("zip", (0,0)+im.size, 0, rawmode)])<br />  File "/usr/lib64/python2.7/site-packages/PIL/ImageFile.py", line 456, in _save<br />    e = Image._getencoder(im.mode, e, a, im.encoderconfig)<br />  File "/usr/lib64/python2.7/site-packages/PIL/Image.py", line 395, in _getencoder<br />    return encoder(mode, *args + extra)<br />TypeError: function takes at most 4 arguments (6 given)


登录后回复
 

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