odoo win10 无法debug

win10能够启动项目,但是debug报错:


Process finished with exit code -1073740940 (0xC0000374)

解决方式:

修改translate.py

def resetlocale():
# locale.resetlocale is bugged with some locales.
for ln in get_locales():
try:
ln = ln[0:ln.index('.')] #加上这个一行
return locale.setlocale(locale.LC_ALL, ln)
except locale.Error:
continue

posted @ 2020-03-25 14:44  禾勿人水  阅读(295)  评论(0)    收藏  举报