報(bào)錯(cuò)信息如下:
raise QWebException("Error to render compiling AST", e, path, node and etree.tostring(node[0]), name)
QWebException: 'ascii' codec can't encode character u'\u5e74' in position 2: ordinal not in range(128)
是由于python無法解析utf8字符集導(dǎo)致的预明,修改·sudo vi /etc/python2.7/sitecustomize.py·
添加:
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
重啟odoo服務(wù),然后就可以了