新手在centos7安装odoo8.0成功,但创建帐套一直错误,怎么破?
-
在创建帐套的时候,一直出现500 Internal Server Error错误,查看日志发现xml文件出错
源码安装,git的最新源码
错误信息如下,求解
return encoder(mode, *args + extra)
ParseError: "function takes at most 4 arguments (6 given)" while parsing /opt/odoo/odoo/openerp/addons/base/base_data.xml:128, near
<record id="public_user" model="res.users">
<field name="name">Public user</field>
<field name="login">public</field>
<field name="password"/>
<!-- Avoid auto-including this demo user in any default group -->
<field name="groups_id" eval="[(6,0,[ref('base.group_public')])]"/>
<field name="image" type="base64" file="base/static/img/public_user-image.png"/>
<field name="partner_id" ref="public_partner"/>
<field name="active" eval="False"/>
</record>
如果在base_data.xml文件中注释掉这段代码,可以创建成功,但是进入后创建模块时,只要有groups_id出现的地方,都出现xml错误,只有注释掉才可以,这个是不是程序本身错误呢,还是其他什么原因???请大家帮忙看下,谢谢 -
这个包有安装,
包安装如下:
Babel (0.9.6)
backports.ssl-match-hostname (3.4.0.2)
Beaker (1.5.4)
chardet (2.0.1)
configobj (4.7.2)
decorator (3.4.0)
docutils (0.12)
enum34 (1.0.4)
feedparser (5.1.3)
iniparse (0.4)
Jinja2 (2.7.2)
kitchen (1.1.1)
lxml (3.2.1)
Mako (0.8.1)
MarkupSafe (0.11)
mock (1.0.1)
passlib (1.5.3)
Paste (1.7.5.1)
PIL (1.1.7)
Pillow (2.0.0)
pip (7.1.0)
psutil (1.2.1)
psycogreen (1.0)
psycopg2 (2.6)
PyChart (1.39)
pycountry (1.12)
pycurl (7.19.0)
pydot (1.0.2)
pygobject (3.8.2)
pygpgme (0.3)
pyliblzma (0.5.3)
pyOpenSSL (0.13.1)
pyparsing (1.5.6)
pyPdf (1.13)
python-dateutil (1.5)
python-ldap (2.4.15)
python-openid (2.2.5)
python-stdnum (1.1)
pytz (2012d)
pyudev (0.15)
pyvat (1.3.1)
pyxattr (0.5.1)
PyYAML (3.11)
reportlab (2.5)
requests (1.1.0)
setuptools (0.9.8)
simplejson (3.3.3)
six (1.3.0)
slip (0.4.0)
slip.dbus (0.4.0)
Tempita (0.5.1)
unittest2 (0.5.1)
urlgrabber (3.10)
urllib3 (1.5)
vatnumber (1.2)
vobject (0.8.1rc0)
Werkzeug (0.9.1)
yum-metadata-parser (1.1.4) -
邮件相关的也都出错
Traceback (most recent call last):
File "/opt/odoo/odoo/openerp/http.py", line 537, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/openerp/http.py", line 574, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo/openerp/http.py", line 310, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/openerp/http.py", line 307, in checked_call
return self.endpoint(*a, **kw)
File "/opt/odoo/odoo/openerp/http.py", line 803, in call
return self.method(*args, **kw)
File "/opt/odoo/odoo/openerp/http.py", line 403, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 948, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 936, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/odoo/openerp/addons/base/module/module.py", line 446, in button_immediate_install
return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)
File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/odoo/openerp/addons/base/module/module.py", line 494, in _button_immediate_function
registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)
File "/opt/odoo/odoo/openerp/modules/registry.py", line 370, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/odoo/odoo/openerp/modules/loading.py", line 355, in load_modules
loaded_modules, update_module)
File "/opt/odoo/odoo/openerp/modules/loading.py", line 255, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/opt/odoo/odoo/openerp/modules/loading.py", line 176, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/opt/odoo/odoo/openerp/modules/loading.py", line 118, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/opt/odoo/odoo/openerp/tools/convert.py", line 901, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/opt/odoo/odoo/openerp/tools/convert.py", line 987, in convert_xml_import
obj.parse(doc.getroot(), mode=mode)
File "/opt/odoo/odoo/openerp/tools/convert.py", line 853, in parse
self._tags[rec.tag](self.cr, rec, n, mode=mode)
File "/opt/odoo/odoo/openerp/tools/convert.py", line 755, in _tag_record
f_val = self.id_get(cr, f_ref)
File "/opt/odoo/odoo/openerp/tools/convert.py", line 832, in id_get
res = self.model_id_get(cr, id_str, raise_if_not_found)
File "/opt/odoo/odoo/openerp/tools/convert.py", line 843, in model_id_get
raise_if_not_found=raise_if_not_found)
File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/odoo/openerp/addons/base/ir/ir_model.py", line 936, in xmlid_to_res_model_res_id
return self.xmlid_lookup(cr, uid, xmlid)[1:3]
File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "<string>", line 2, in xmlid_lookup
File "/opt/odoo/odoo/openerp/tools/cache.py", line 74, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/opt/odoo/odoo/openerp/addons/base/ir/ir_model.py", line 926, in xmlid_lookup
raise ValueError('External ID not found in the system: %s' % (xmlid))
ParseError: "External ID not found in the system: mail.group_all_employees" while parsing /opt/odoo/odoo/addons/stock/stock_data.xml:83, near
<record model="mail.message" id="module_install_notification">
<field name="model">mail.group</field>
<field name="res_id" ref="mail.group_all_employees"/>
<field name="type">notification</field>
<field name="subtype_id" ref="mail.mt_comment"/>
<field name="subject">Warehouse Management application installed!</field>
<field name="body"><p>Manage your product inventoy and stock locations: you can control stock moves history and planning,
watch your stock valuation, and track production lots (based on serial numbers).</p></field>
</record> -
还有图片的地方都出错,明明已经有PIL包了啊
Traceback (most recent call last):
File "/opt/odoo/odoo/openerp/http.py", line 537, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/openerp/http.py", line 574, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo/openerp/http.py", line 310, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/openerp/http.py", line 307, in checked_call
return self.endpoint(*a, **kw)
File "/opt/odoo/odoo/openerp/http.py", line 803, in call
return self.method(*args, **kw)
File "/opt/odoo/odoo/openerp/http.py", line 403, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 944, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 936, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/odoo/openerp/addons/base/res/res_users.py", line 850, in default_get
values = super(users_view, self).default_get(cr, uid, fields1, context)
File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/odoo/openerp/api.py", line 336, in old_api
result = method(recs, *args, **kwargs)
File "/opt/odoo/odoo/openerp/models.py", line 1326, in default_get
defaults[name] = field.default(self)
File "/opt/odoo/odoo/openerp/fields.py", line 433, in <lambda>
func(recs), recs, validate=False,
File "/opt/odoo/odoo/openerp/fields.py", line 429, in <lambda>
func = lambda recs: value(recs._model, recs._cr, recs._uid, recs._context)
File "/opt/odoo/odoo/openerp/addons/base/res/res_users.py", line 267, in _get_default_image
return self.pool['res.partner']._get_default_image(cr, uid, False, colorize=True, context=context)
File "/opt/odoo/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/odoo/openerp/api.py", line 336, in old_api
result = method(recs, *args, **kwargs)
File "/opt/odoo/odoo/openerp/addons/base/res/res_partner.py", line 323, in _get_default_image
image = tools.image_colorize(image)
File "/opt/odoo/odoo/openerp/tools/image.py", line 190, in image_colorize
image.save(buffer, 'PNG')
File "/usr/lib64/python2.7/site-packages/PIL/Image.py", line 1477, in save
save_handler(self, fp, filename)
File "/usr/lib64/python2.7/site-packages/PIL/PngImagePlugin.py", line 608, in _save
ImageFile._save(im, _idat(fp, chunk), [("zip", (0,0)+im.size, 0, rawmode)])
File "/usr/lib64/python2.7/site-packages/PIL/ImageFile.py", line 456, in _save
e = Image._getencoder(im.mode, e, a, im.encoderconfig)
File "/usr/lib64/python2.7/site-packages/PIL/Image.py", line 395, in _getencoder
return encoder(mode, *args + extra)
TypeError: function takes at most 4 arguments (6 given)