This is an Odoo template for quick setup and deployment. (Default Odoo 17, PostgreSQL 15)
Before using this template, install the following:
docker-compose build
docker-compose up -d
docker-compose down
docker-compose restart
docker-compose logs -f --tail=20
docker-compose ps -a
docker-compose down -v
docker volume create odoo(version)_postgres_data
docker-compose --help
To ensure code quality and follow OCA standards, run the following checks
pip install pre-commit
pre-commit install
pre-commit run --all-files
pylint --load-plugins=pylint_odoo modules/ third-party-modules/
black .
flake8 modules/ third-party-modules/
pytest
open pgAdmin4 right click on server > register > server
Connection TAB
Hostname/address = localhost
PORT = 8069
Maintenance database = postgres
Usernam = odoo
Password = odoo
Error at the first time (AssertionError: /var/lib/odoo/sessions: directory is not writable) Use docker-compose down -v for reset DB then docker-compose up -d again