odoo官网可以获取相关手册,api文档等(英文)
系统环境
系统:windows 7
IDE:PyCharm
python:2.7
postgreDB:server 9.5
源码下载
官网下载source/gihub源码/上方下载链接下载
依赖模块加载前的准备
加载依赖模块时出现error:No module named win32service时,需要下载pywin32
pywin32下载:https://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/
加载依赖模块
cmd中查看是否有python环境:

查看是否有nodejs的npm:

打开至源码根目录下:

使用python的pip安装odoo依赖包:
C:\YourOdooPath> C:\Python27\Scripts\pip.exe install -r requirements.txt

这样会自动安装odoo所依赖的包,具体在requirements中。如果有无法安装的,需要手动下载相关包进行配置。
使用npm安装less:
C:\> npm install -g less

RUNNING
命令行运行
C:\YourOdooPath> python odoo-bin -w odoo -r odoo --addons-path=addons,../mymodules --db-filter=mydb$
其中数据库名字和密码为odoo,端口默认8069
IDE运行
使用IDE打开odoo源码,手动创建配置文件.conf,写入相关配置。

PyCharm创建Run/DebugConfiguartions,写入相关启动参数

点击运行按钮即可

输入localhost:8069进入odoo网页。

网友评论