还有图片的地方都出错,明明已经有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)