求助:OE7 点击产品成本构成的时候,出现下面的错误,请问什么原因?
-
求助:OE7 点击产品成本构成的时候,出现下面的错误,请问什么原因?
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 712, in go
(result, format) = obj.create(cr, uid, ids, datas, context)
File "/usr/lib/pymodules/python2.7/openerp/report/interface.py", line 83, in create
xml = self.create_xml(cr, uid, ids, datas, context)
File "/usr/lib/pymodules/python2.7/openerp/addons/mrp/report/price.py", line 116, in create_xml
""" % to_xml(user_pool.browse(cr, uid, uid).company_id.name)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 40: ordinal not in range(128)
2014-10-07 05:21:50,753 1135 INFO db_jzk werkzeug: 127.0.0.1 - - [07/Oct/2014 05:21:50] "POST /web/dataset/call_kw HTTP/1.0" 200 -
2014-10-07 05:21:50,790 1135 INFO db_jzk werkzeug: 127.0.0.1 - - [07/Oct/2014 05:21:50] "POST /web/menu/load_needaction HTTP/1.0" 200 -
2014-10-07 05:21:50,807 1136 ERROR db_jzk openerp.netsvc: ascii
<config>
<date>2014骞?0?7妤 13娑21?0绉 -
请问具体应该如何解决?
服务器信息:
Linux ubuntu-64-srv 3.13.0-35-generic #62-Ubuntu SMP Fri Aug 15 01:58:42 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
错误信息:
2014-10-08 02:47:57,298 1160 ERROR db_jzk openerp.service.web_services: Exception: 'ascii' codec can't decode byte 0xe5 in position 40: ordinal not in range(128)
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 712, in go
(result, format) = obj.create(cr, uid, ids, datas, context)
File "/usr/lib/pymodules/python2.7/openerp/report/interface.py", line 83, in create
xml = self.create_xml(cr, uid, ids, datas, context)
File "/usr/lib/pymodules/python2.7/openerp/addons/mrp/report/price.py", line 116, in create_xml
""" % to_xml(user_pool.browse(cr, uid, uid).company_id.name)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 40: ordinal not in range(128)
2014-10-08 02:47:57,449 1159 INFO db_jzk werkzeug: 127.0.0.1 - - [08/Oct/2014 02:47:57] "POST /web/dataset/call_kw HTTP/1.0" 200 -
2014-10-08 02:47:57,485 1159 INFO db_jzk werkzeug: 127.0.0.1 - - [08/Oct/2014 02:47:57] "POST /web/menu/load_needaction HTTP/1.0" 200 -
2014-10-08 02:47:57,630 1160 ERROR db_jzk openerp.netsvc: ascii
<config>
<date>2014骞?0?8妤 10娑47?7绉
40
41
ordinal not in range(128)
(<type 'exceptions.UnicodeDecodeError'>, UnicodeDecodeError('ascii', '\n <config>\n <date>2014\xe5\xb9\xb410\xe6\x9c\x8808\xe6\x97\xa5 10\xe6\x97\xb647\xe5\x88\x8657\xe7\xa7\x92', 40, 41, 'ordinal not in range(128)'), <traceback object at 0x7f1f10468908>)
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 296, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 654, in dispatch
res = fn(db, uid, *params)
File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 760, in exp_report_get
return self._check_report(report_id)
File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 738, in _check_report
netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)
File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 71, in abort_response
raise openerp.osv.osv.except_osv(description, details)
except_osv: (u'ascii\n\n <config>\n <date>2014\u5e7410\u670808\u65e5 10\u65f647\u520657\u79d2\n40\n41\nordinal not in range(128)', (<type 'exceptions.UnicodeDecodeError'>, UnicodeDecodeError('ascii', '\n <config>\n <date>2014\xe5\xb9\xb410\xe6\x9c\x8808\xe6\x97\xa5 10\xe6\x97\xb647\xe5\x88\x8657\xe7\xa7\x92', 40, 41, 'ordinal not in range(128)'), <traceback object at 0x7f1f10468908>))