odoo12 pycharm 可以正常run 但无法Debug启动:
Process finished with exit code -1073740940 (0xC0000374)
解决方式:
修改/odoo/tools/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