Odoo中文网|Odoo实施培训

 找回密码
 立即注册
搜索
热搜: Odoo OpenERP 实施
查看: 7943|回复: 0
打印 上一主题 下一主题

在Windows下调试Odoo

[复制链接]

119

主题

119

帖子

566

积分

高级会员

Rank: 4

积分
566
跳转到指定楼层
楼主
发表于 2015-9-10 22:32:40 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
依赖处理

安装postgresql (http://www.postgresql.org/download/windows/

安装PG的Python驱动,psycopg2-2.6.0.win-amd64-py2.7-pg9.4.1-release (https://pypi.python.org/pypi/psycopg2/2.6

安装python的VC编译器,VCForPython27 (http://www.microsoft.com/en-us/download/details.aspx?id=44266

安装windows系统API的访问库,pywin32-219.win-amd64-py2.7 (http://sourceforge.net/projects/ ... ywin32/Build%20219/

下载并安装目录访问库, python_ldap‑2.4.19‑cp27‑none‑win_amd64.whl (http://www.lfd.uci.edu/~gohlke/pythonlibs/

下载并安装PDF处理库,reportlab-3.1.44-cp27-none-amd64.whl (http://www.lfd.uci.edu/~gohlke/pythonlibs/

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

修改requirements.txt:

  1. psycopg2==2.5.3 >> psycopg2==2.6.0
  2. python-ldap==2.4.15 >> python-ldap==2.4.19
  3. Delete gevent==1.0.1
  4. reportlab==3.1.8 >> reportlab==3.1.44
复制代码
pip install -r requirements.txt

pip uninstall gevent

Odoo配置

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:

  1. [options]
  2. ; This is the password that allows database operations:
  3. ; admin_passwd = admin
  4. db_host = localhost
  5. db_port = 5432
  6. db_user = odoo
  7. db_password = odoo
  8. addons_path = D:\Dev\PyCharmProjects\odoo\addons
复制代码
IDEA运行配置
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


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|技术支持|开发手册|Odoo中文网-远鼎旗下odoo培训网站 ( 苏ICP备15039516号 )

GMT+8, 2024-6-15 03:47 , Processed in 0.011225 second(s), 11 queries , Xcache On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表