在Windows下調試Odoo

依賴處理<A NAME="dependent"> </A>

  1. 安裝postgresql (http://www.postgresql.org/download/windows/)python

  2. 安裝PG的Python驅動,psycopg2-2.6.0.win-amd64-py2.7-pg9.4.1-release (https://pypi.python.org/pypi/psycopg2/2.6)git

  3. 安裝python的VC編譯器,VCForPython27 (http://www.microsoft.com/en-us/download/details.aspx?id=44266)github

  4. 安裝windows系統API的訪問庫,pywin32-219.win-amd64-py2.7 (http://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/)sql

  5. 下載並安裝目錄訪問庫, python_ldap‑2.4.19‑cp27‑none‑win_amd64.whl (http://www.lfd.uci.edu/~gohlke/pythonlibs/)windows

  6. 下載並安裝PDF處理庫,reportlab-3.1.44-cp27-none-amd64.whl (http://www.lfd.uci.edu/~gohlke/pythonlibs/)post

  7. git clone -b 8.0 https://github.com/odoo/odoo.gitui

  8. 修改requirements.txt:.net

    psycopg2==2.5.3 >> psycopg2==2.6.0
      python-ldap==2.4.15 >> python-ldap==2.4.19
      Delete gevent==1.0.1
      reportlab==3.1.8 >> reportlab==3.1.44
  9. pip install -r requirements.txtpostgresql

  10. pip uninstall geventcode

Odoo配置<A NAME="config"> </A>

In Odoo project root, copy debian/openerp-server.conf to another folder. In my case, it is D:\Dev\odooTest\openerp-server.conf , edit the file to have the following configurations:

[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = localhost
db_port = 5432
db_user = odoo
db_password = odoo
addons_path = D:\Dev\PyCharmProjects\odoo\addons

IDEA運行配置<A NAME="run"> </A>

Run --> Edit Configurations, click "+" on the top left to create a new configuration with the following settings: Name: Odoo8 Single instance checkbox: checked Script: <odoo源碼目錄>\odoo.py Script parameters: --config=D:\Dev\odooTest\openerp-server.conf

Enjoy!

相關文章
相關標籤/搜索