<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Odoo on ZHYF的杂记</title>
    <link>https://v2.jf360.tech/tags/odoo/</link>
    <description>Recent content in Odoo on ZHYF的杂记</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh-cn</language>
    <lastBuildDate>Thu, 25 Jun 2020 16:23:44 +0800</lastBuildDate>
    
	<atom:link href="https://v2.jf360.tech/tags/odoo/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Odoo在PyCharm中无法调试的问题</title>
      <link>https://v2.jf360.tech/post/odoo-pycharm-debug/</link>
      <pubDate>Thu, 25 Jun 2020 16:23:44 +0800</pubDate>
      
      <guid>https://v2.jf360.tech/post/odoo-pycharm-debug/</guid>
      <description>打开odoo\tools\translate.py文件，找到函数resetlocale()，大约在1152行（v13）中添加一行代码：
ln = ln[0:ln.index(&#39;.&#39;)]
如下：
try: return locale.setlocale(locale.LC_ALL, ln) 改为：
try: ln = ln[0:ln.index(&amp;#39;.&amp;#39;)] # 添加此行 return locale.setlocale(locale.LC_ALL, ln) 此问题貌似不会出现在英文windows中，所以Odoo官方一直没注意到这个问题；此解决办法对Odoo 12同样有效。</description>
    </item>
    
  </channel>
</rss>