- 执行
xcode-select --install
,如果已安装请忽略 - 下载odoo10,执行
git clone https://www.github.com/odoo/odoo --depth 1 --branch 10.0 --single-branch odoo10
- 速度慢使用镜像:
git clone https://gitee.com/mirrors/odoo.git --depth 1 --branch 10.0 --single-branch odoo10
- 速度慢使用镜像:
- 安装pip
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python get-pip.py
- 需要在
.bash_profile
或.zprofile
添加export PATH=~/Library/Python/2.7/bin:${PATH}
- pip镜像使用,执行
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
cd odoo10
- 注释requirements.txt的
Pillow==3.4.1
python-ldap==2.4.27
reportlab==3.3.0
pip install -r requirements.txt
- pip install python-ldap==2.4.27 --global-option=build_ext --global-option="-I$(xcrun --show-sdk-path)/usr/include/sasl"
- pip install reportlab
- pip install Pillow==4.0.0
- 安装postgresapp,点击直接下载
- 点击
initialize
初始化
- 点击
- 安装node https://nodejs.org/en/
- 执行
sudo npm install -g less@3.0.4 less-plugin-clean-css
- 执行
- 启动Odoo
python odoo-bin --addons-path=addons --db-filter=postgres
- 配置说明
- 打开 http://localhost:8069/
- 创建数据库
- 执行
python odoo-bin --addons-path=addons --db-filter=数据库名字
Copyright © 2013 Powered by MWeb, Theme used GitHub CSS. 豫ICP备16018939号-2