- Homebrew (for installing python)
- Docker (for postgresql server, you can install postgre with homebrew too)
- python3 (for installing virtualenv)
- virtualenv (to run as python3.7, pillow 6.1.0 dependencies can be run with python3.5, 3.6, and 3.7)
- Install python3.7 with brew
brew install python3
- Then install virtualenv with pip3
pip3 install virtualenv
- Clone Odoo from git repository
git clone https://github.com/odoo/odoo --branch 13.0 --depth 1
- Create virtualenv inside odoo directory
cd odoo virtualenv -p /usr/local/opt/python@3.7/bin/python3 venv
- Activate venv
source venv/bin/activate
- Install setuptools and wheel, and requirements.txt with pip, but first confirm pip use python3.7
pip --version pip install setuptools wheel && pip install -r requirements.txt
- Once done, run postgresql, here i am using docker-compose.yml that i provided with this gist
docker compose up -d
- postgresql run on localhost:5432, then run odoo-bin with some flag arguments for database
python odoo-bin --addons-path=addons -d postgres -r odoo -w odoo --db_host=localhost --db_port=5432 -i base
- Odoo installed on port :8069, create new database here http://localhost:8069/web/database/manager (example db_name is odt, and check "demo data")
- Wait page to automatically refresh to login page. Once done, cancel odoo from terminal, then run odoo-bin with new database name
python odoo-bin --addons-path=addons -d odt -r odoo -w odoo --db_host=localhost --db_port=5432
- Now, you can access http://localhost:8069 and login with your credentials from step number 9