Odoo 17

Run odoo from src

Update src odoo

git submodule init
git submodule update

Build odoo from source

  • Requirement
  1. pyenv
  2. nvm
  • install odoo dependencies
sudo apt install postgresql postgresql-client libpq-dev
sudo ./src/setup/debinstall.sh
npm install -g rtlcss
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.jammy_amd64.deb -P /tmp
sudo apt install -y /tmp/wkhtmltox_0.12.6.1-3.jammy_amd64.deb

Run odoo from source

  • run database, setup env and install requirements
docker-compose up database -d
python -m venv venv
source ./venv/bin/activate
pip install -r src/requirements.txt
pip install inotify
  • run odoo
python src/odoo-bin --dev=all --log-web --log-sql -c odoo.conf
  • create module
python src/odoo-bin scaffold player extra-addons -t default

Run odoo from docker

docker-compose up -d