相信不少朋友在使用 Odoo 8 的 PLM 插件,当在 Surface Finishing 项输入中文,创建新表面处理要求时,会出现以下错误提示:
- Odoo Server Error
- -------------------------------------------------------------------------------------------------------------
- Traceback (most recent call last):
- File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 530, in _handle_exception
- return super(JsonRequest, self)._handle_exception(exception)
- File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 567, in dispatch
- result = self._call_function(**self.params)
- File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 303, in _call_function
- return checked_call(self.db, *args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/openerp/service/model.py", line 113, in wrapper
- return f(dbname, *args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 300, in checked_call
- return self.endpoint(*a, **kw)
- File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 796, in __call__
- return self.method(*args, **kw)
- File "/usr/lib/python2.7/dist-packages/openerp/http.py", line 396, in response_wrap
- response = f(*args, **kw)
- File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 936, in call_kw
- return self._call_kw(model, method, args, kwargs)
- File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 928, in _call_kw
- return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 241, in wrapper
- return old_api(self, *args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 363, in old_api
- result = method(recs, *args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 5858, in onchange
- record._onchange_eval(name, field_onchange[name], result)
- File "/usr/lib/python2.7/dist-packages/openerp/models.py", line 5776, in _onchange_eval
- method_res = getattr(self._model, method)(*args)
- File "/usr/lib/python2.7/dist-packages/openerp/api.py", line 241, in wrapper
- return old_api(self, *args, **kwargs)
- File "/usr/lib/python2.7/dist-packages/openerp/addons/openerpplm/install/plm_extend_entities.py", line 107, in on_change_tmpsurface
- return {'value': {'engineering_surface':str(values['engineering_surface'])}}
- UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
复制代码出现这种错误提示,说明 PLM 插件的 Surface Finishing 项不支持输入中文。
若你单击“确定”并继续操作,好像还行,能用,只是看起来有点不正常。
若运气差的话,就可能出现 Odoo 数据库崩溃而无法操作,或退出 Odoo 后,无法再次登录等问题。
这个问题我也在想办法解决,暂时无解。所以,先把情况贴出来,大家一起想办法。
|