Odoo 17 Installation Guide

Introduction

Odoo is a suite of business applications that includes CRM, accounting, e-commerce, inventory management, and more. This guide explains how to install Odoo 17 on an Ubuntu system.


Prerequisites

Before proceeding with the installation, ensure you have the following:

  • Ubuntu server 22.04
  • Python 3.10.x

Step 1: Install PostgreSQL

Odoo requires PostgreSQL as its database backend. Follow these steps to install PostgreSQL:

sudo apt update
sudo apt install postgresql

Verify the PostgreSQL service status:

sudo systemctl status postgresql
sudo systemctl is-enabled postgresql

Step 2: Install Wkhtmltopdf

Odoo uses Wkhtmltopdf to generate PDF reports. Install it as follows:

  1. Download the appropriate version:

    wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
    
  2. Install the package:

    sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb
    sudo apt install -f
    

    Test the installation:

     which wkhtmltopdf
     which wkhtmltoimage
    

    Output should include paths to binary files of the installed packages such as /usr/local/bin/wkhtmltoimage


Step 3: Install Odoo

To install Odoo, follow these steps:

  1. Add the Odoo repository:

     wget -q -O - https://nightly.odoo.com/odoo.key | sudo gpg --dearmor -o /usr/share/keyrings/odoo-archive-keyring.gpg
     echo 'deb [signed-by=/usr/share/keyrings/odoo-archive-keyring.gpg] https://nightly.odoo.com/17.0/nightly/deb/ ./' | sudo tee /etc/apt/sources.list.d/odoo.list
    
  2. Update the package list and install Odoo and its dependencies:

     sudo apt-get update 
     sudo apt install git wget python3 python3-pip postgresql build-essential wkhtmltopdf python3-dev python3-venv python3-wheel libxslt-dev libpq-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less libjpeg-dev gdebi
     sudo apt-get install odoo
    
  3. Start and enable the Odoo service:

    sudo systemctl start odoo
    sudo systemctl is-enabled odoo
    

    Verify if Odoo is listening using:

     sudo netstat -tpln
    

Step 4: Accessing Odoo Web Administration Interface

  1. Open a web browser and navigate to one of the following addresses:

    http://SERVER-IP-Address:8069
    OR
    http://Server-hostname:8069
    
  2. Wait for the interface to load, then create a database for Odoo. Enter a database name, administrator email address, and password. Select the language and country. Optionally, load sample data. Then click Create Database.

  3. After creating the database, the page will redirect to the administrator’s dashboard, showing the available Odoo apps. You can install or upgrade apps by clicking on the respective buttons. To log out, click on Admin dropdown => Log out.


Additional Configuration

Configure Firewall (Optional)

If you have a firewall enabled, allow traffic on port 8069:

sudo ufw allow 8069
sudo ufw reload

Log File Location

Odoo logs can be found at:

/var/log/odoo/odoo.log

You can monitor the logs using:

tail -f /var/log/odoo/odoo.log

If it is required to configure with certificate and domain name, please add the following node’s IP with port(http://172.21.x.x:8069) in the backend section of existing Load balancer configuration.

Reference: https://www.tecmint.com/install-odoo-in-ubuntu/node

Odoo on local server:

Odoo Test node: http://172.21.1.206:8069 Odoo Admin node: http://172.21.2.92:8069

Admin node Credentials Manager:

Host: 172.21.2.92 
doo webserver: 172.21.1.206:8069
Odoo Admin logins:
Username: venkat.kowru@sayukth.com
Password: 1!Devops@dmin
odoo database master password: 7hdh-g5uj-ftk9
Database New password: 1!Devops@dmin
Database name: odoodb
Phone number: 9494404057
Multi user Creds:
Username: shayamkumar.jada@sayukth.com
Password: shyamkumar

Dashboard managment and Overview.

Tasks to test the odoo manager:

  1. Creating Non-super user
  2. Defferentiate between Admin and normal user
  3. Creating Multiple companies
  4. Overview and understanding, Document admin dashboard

Non-Super user creation:

In Odoo, the number of users you can create depends on the edition and license:

Odoo Community Edition:

You can create unlimited users without any restrictions. However, advanced access control and some enterprise features are limited.

Navigate to Apps > settings > Manage Users > New-user

While Creating the user, we select the access type in Adminstration block.

  • If the user created with Settings previlages, then the user will be created with Adminstrative access.

  • If the user created with No privilages(living blank), then the user will be created with limited prvilages, as he can only view the assigned appls and compnaies.

  • If the user creaed with Access Rights , the user will have only privilages to configure users na companies.

Multiple Companies:

Odoo Companies Module (Multi-Company Feature)

The Companies module in Odoo allows businesses to manage multiple companies within a single Odoo instance. This feature is essential for organizations that operate multiple legal entities, subsidiaries, or branches.

Defferentiate between Admin and normal user Access-control

Modules Admin-User Non-Admin-user
Data 1 Data 2
Row 2 Data 3 Data 4