Skip to content

Server Reference

Last Updated: February 2026

Configuration File

/etc/odoo17.conf - Key settings:

[options]
xmlrpc_port = 1818
addons_path = /home/dan/SR-Odoo,/opt/odoo17/odoo17/addons,/opt/odoo17/odoo17-custom-addons,...
db_name =
dbfilter = ^test1$

Service Management

# Restart Odoo
sudo systemctl restart odoo17

# View logs
sudo tail -f /var/log/odoo17/odoo17.log

# Check status
sudo systemctl status odoo17

Database Access

# Odoo shell (for testing Python code)
sudo -u odoo17 /opt/odoo17/odoo17-venv/bin/python3 \
  /opt/odoo17/odoo17/odoo-bin shell -c /etc/odoo17.conf -d test1

# Direct PostgreSQL
sudo -u odoo17 psql -d test1

Adding a New Module to the Addons Path

  1. Place the module in /home/dan/SR-Odoo/ (it's already in the addons path)
  2. Restart Odoo: sudo systemctl restart odoo17
  3. In Odoo: Apps > Update Apps List > search and install

If the module is in a subdirectory (like oca_telephony/base_phone), add the parent directory to addons_path in /etc/odoo17.conf.