https://gitee.com/guohuadeng/odoo13-x64
Green Odoo 13 x64, https://www.Sunpop.cn
64位版本性能会比32位高很多,包括高效指令及大内存更快巡址。对高资源消耗的odoo,使用64位是十分有必要的。 本版本在使用64位的基础上,对postgresql进行了优化,并使用nginx进行反向代理,实现了longpolling,可以使用odoo的桌面消息通知,也不会经常报错了。 在windows上搭建了一个完整的高性能 Odoo 环境。 因速度原因,不再支持一键更新至最新版,请手工高速下载后解压覆盖 /source 目录文件。 http://nightly.odoo.com/13.0/nightly/src/odoo_13.0.latest.zip 因百度cdn问题,以下链接要输入验证码 http://nightly.odoocdn.com/13.0/nightly/src/odoo_13.0.latest.zip
- python 3.7.5, 64位
- postgresql 10.10 ,64位
- Nginx 1.15.5, 64位
- Odoo 13社区版,20200705版
- 增加 sphinx 及 tx_client,用于文档及翻译
Odoo 13 各种新特性及功能介绍 - 广州尚鹏 | odoo专业实施开发 https://www.sunpop.cn/?s=odoo13
使用pycharm搭建odoo 12, 11,10 开发调试环境 http://www.sunpop.cn/odoo_12_11_10_dev_with_pycharm_setup/
.\extra\vcredist_x64.exe
- 启动odoo:执行 r.bat后,访问 http://localhost:8013 或者 http://localhost
- 更新odoo:执行 s.bat 停止odoo运行后,执行 u.bat。如要手工更新至最新odoo,请至官方下载后覆盖 ./source 目录下文件即可
- 系统已有默认数据库 demo,登录用户/密码: admin/admin
- 重新初始化数据库:执行 init.bat
- 如多版本并存,请自行调整nginx的映射端口
- odoo13下载地址 https://codeload.github.com/odoo/odoo/zip/13.0
- 高速odoo13下载地址 http://nightly.odoocdn.com/master/nightly/src/odoo_13.0alpha1.latest.zip
- odoo13 deb http://nightly.odoocdn.com/master/nightly/deb/odoo_13.0alpha1.latest_all.deb
- pycharm配置说明: http://www.sunpop.cn/odoo_12_11_10_dev_with_pycharm_setup/
├─addons_app app通用源码 ├─addons_odoo odoo源码,用于优先加载后断点调试 ├─addons_patch app通用源码,需要直接修改的放这里,多用于调整bug和翻译 ├─data 要人工导入的资料 ├─extra 附加包,如 WKHTMLTOPDF ├─fixed 修复内容包 ├─odoofile odoo生成的静态文件资源 ├─runtime 运行库,包括pg数据文件 └─source odoo13源码
odoo.conf 配置 db.bat 单独启动数据库,用在pycharm中,debug启动时先启用数据库,假设odoo12是在 d:\odoo12-x64 目录,如有变化自行更改 ment.bat 将无法在windows处理的企业版模块移出 r.bat 最常用,odoo服务启动(如果当前有进程则先关闭再启动) s.bat 停止 u.bat 删除当前source目录中的odoo源码,从git上下载最新版本 extra 依赖文件目录,如果要自行安装涉及到的库,其它如果提示dll错误请安装 vcredist_x64.exe
这些是我们自行使用的内容
如果遇到问题,请首先尝试处理Postgresql,进入bin目录执行环境初始化,相关指令如下
cd runtime\pgsql\bin
rd /s/q ..\data
initdb.exe -D ..\data -E UTF8
pg_ctl -D ..\data -l logfile start
createuser --createdb --no-createrole --no-superuser --pwprompt odoo
https://www.python.org/downloads/windows/
cd d:\odoo13-x64\runtime\python3
SET PATH=d:\odoo13-x64\runtime\python3;d:\odoo13\runtime\python3\scripts;%PATH%
SET PATH=%CD%\runtime\pgsql\bin;%CD%\runtime\python3;%CD%\runtime\python3\scripts;%CD%\runtime\win32\wkhtmltopdf;%CD%\runtime\win32\nodejs;%CD%\source;%PATH%
runtime\python3\python .\extra\get-pip.py
python3 ..\..\extra\get-pip.py
http://www.lfd.uci.edu/~gohlke/pythonlibs/
pip3 install -r .\source\requirements.txt -i https://mirrors.aliyun.com/pypi/simple
pip3 install reportlab==3.3.0 -i https://mirrors.ustc.edu.cn/pypi/web/simple
pip3 install .\extra\Pillow-5.0.0-cp35-cp35m-win_amd64.whl
pip3 install .\extra\psycopg2-2.7.4-cp35-cp35m-win_amd64.whl
pip3 install .\extra\pyldap-2.4.45-cp35-cp35m-win_amd64.whl
pip3 install .\extra\reportlab-3.4.0-cp35-cp35m-win_amd64.whl
pip3 install .\extra\Werkzeug-0.14.1-py2.py3-none-any.whl
pip3 install .\extra\pywin32-223-cp35-cp35m-win_amd64.whl
pip3 install .\extra\psycopg2-2.7.4-cp35-cp35m-win_amd64.whl
pip3 install .\extra\wandex-0.4.5-py3-none-any.whl
pip3 install .\extra\imageio-2.3.0-py2.py3-none-any.whl
pip3 install .\extra\moviepy-0.2.3.5-py2.py3-none-any.whl
pip3 install .\extra\psutil-5.5.1-cp35-cp35m-win_amd64.whl
pip3 install -r .\requirements.txt -i https://mirrors.aliyun.com/pypi/simple
pip3 install .\extra\Pillow-5.4.1-cp36-cp36m-win_amd64.whl
pip3 install .\extra\psycopg2-2.7.7-cp36-cp36m-win_amd64.whl
pip3 install .\extra\pyldap-2.4.45-cp36-cp36m-win_amd64.whl
pip3 install .\extra\reportlab-3.5.13-cp36-cp36m-win_amd64.whl
pip3 install .\extra\Werkzeug-0.14.1-py2.py3-none-any.whl
pip3 install .\extra\pywin32-224-cp36-cp36m-win_amd64.whl
pip3 install .\extra\wandex-0.4.5-py3-none-any.whl
pip3 install .\extra\imageio-2.5.0-py3-none-any.whl
pip3 install .\extra\moviepy-1.0.0-py2.py3-none-any.whl
pip3 install .\extra\psutil-5.6.1-cp36-cp36m-win_amd64.whl
pip3 install .\extra\lxml-4.2.3-cp36-cp36m-win_amd64.whl
pip3 install .\extra\psutil-5.6.1-cp36-cp36m-win_amd64.whl
你可以使用以下pip 命令: pip3 install -i https://pypi.douban.com/simple pycryptodome
在Windows 系统上安装则稍有不同: pip3 install -i https://pypi.douban.com/simple pycryptodomex 装完注意改大小写 ./runtime/python3/Lib/site-packages/Crypto
Nginx在已安装的情况下新增 echo 模块,https://www.jianshu.com/p/db389775f972
cd src
wget https://github.com/openresty/echo-nginx-module/archive/v0.61.tar.gz
wget http://nginx.org/download/nginx-1.14.0.tar.gz
tar -zxvf v0.61.tar.gz
tar -zxvf nginx-1.14.0.tar.gz
cp -r echo-nginx-module-0.61 nginx-1.14.0/echo-nginx-module-0.61
cd nginx-1.14.0
./configure --add-module=echo-nginx-module-0.61
apt remove nginx -y
make install
cp -f /root/src/nginx-1.14.0/objs/nginx /usr/local/nginx/sbin/nginx
apt-get install nginx -y
nginx path prefix: "/usr/local/nginx" nginx binary file: "/usr/local/nginx/sbin/nginx" nginx modules path: "/usr/local/nginx/modules" nginx configuration prefix: "/usr/local/nginx/conf" nginx configuration file: "/usr/local/nginx/conf/nginx.conf" nginx pid file: "/usr/local/nginx/logs/nginx.pid" nginx error log file: "/usr/local/nginx/logs/error.log" nginx http access log file: "/usr/local/nginx/logs/access.log" nginx http client request body temporary files: "client_body_temp" nginx http proxy temporary files: "proxy_temp" nginx http fastcgi temporary files: "fastcgi_temp" nginx http uwsgi temporary files: "uwsgi_temp" nginx http scgi temporary files: "scgi_temp"
runtime/nginx/nginx.conf
odoo/odoo#40061 work around https://www.bbsmax.com/A/pRdBy9on5n/