odoo学习-1
1. 虚拟环境的使用
https://blog.csdn.net/u013379032/article/details/131556231
2. linux安装postgresql
到官网,然后选择自己的服务器配置,他会给你一段代码,执行即可 # Install the repository RPM: sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm # Disable the built-in PostgreSQL module: sudo dnf -qy module disable postgresql # Install PostgreSQL: sudo dnf install -y postgresql12-server # Optionally initialize the database and enable automatic start: sudo /usr/pgsql-12/bin/postgresql-12-setup initdb sudo systemctl enable postgresql-12 sudo systemctl start postgresql-12
关闭pg: sudo systemctl stop postgresql-12.service
开启pg:sudo systemctl start postgresql-12.service
3. odoo配置
在odoo/conf中新建openserver.conf文件,并写入: [options] db_name = odoo12_test db_host = 127.0.0.1 db_port = 5432 db_user = odoo12 db_password = odoo12 addons_path = /home/odoo12/odoo/addons
4.流程
下载odoo源码 安装odoo需要的python包requirements.txt
5. 规范
截图
6. 启动命令
切换到虚拟环境,到odoo目录环境中(后续再看其他启动方式) ./odoo-bin -c openserver.conf -i base