报错信息如下:
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字符集导致的,修改·sudo vi /etc/python2.7/sitecustomize.py·
添加:
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
重启odoo服务,然后就可以了
网友评论