How to Install Odoo 15 on Ubuntu 20.04

In this article, we explain you how to install Odoo 15 on Ubuntu 20.04 LTS. Follow 8 easy steps for install Odoo 15 on Ubuntu. Odoo 15 was released on Oct 06, 2021. It is very easy to install Odoo in Ubuntu 20.04 Focal Fossa.

Odoo is a most extensive open-source ERP that provides all business related application. Such as Accounting, CRM, Sales, Purchase, Project, Point of Sale, E-Commerce and many more. So Let’s start how to install and configure Odoo 14 in Ubuntu. Every year Odoo comes up with more new features and make platform more user-friendly.

Install Odoo 15 on Ubuntu 20.04 LTS Focal Fossa #

Step 1 Update and Upgrade Packages

First, we always start our installations before we ensure our system is updated. Run the following command to update the APT list of available packages and their versions. Moreover, use the upgrade command to actually install newer versions of the packages.

sudo apt update && sudo apt -y upgrade

Step 2 Install Prerequisite Dependencies

Next you have to install GIT, Python 3 pip, and other required packages to build Odoo dependencies.

sudo apt install git python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less

You have to install Node.js package in order to install rtlcss package.

Why need rtlcss package? rtlcss package change right-to-left interface such as Arabic or Hebrew language.

sudo npm install -g rtlcss

Step 3 Install & Configure PostgreSQL

Next, you have to install PostgreSQL database server.

sudo apt-get install postgresql -y

PostgreSQL access graphical interface, you need to install pgAdmin 4 (Optional).

Setup a PostgreSQL user for Odoo

First, create a user for communicate between Odoo client and PostgreSQL database. You have an open terminal and execute the following command.

sudo su postgres

Create PostgreSQL user same as your system user using the following command.

createuser --createdb --username postgres --no-createrole --pwprompt USERNAME

How to find system user? If your terminal is [email protected]:/$ then "twink" is your username.

Next, you might need to execute following command to assign superuser rights to new user.

[email protected]$ psql

postgres=# \du;
                                    List of roles
 Role name  |                         Attributes                         | 
 twink      | Create DB                                                  | {}
 postgres   | Superuser, Create role, Create DB, Replication, Bypass RLS | {}

postgres=# \du;
                                    List of roles
 Role name  |                         Attributes                         | 
 twink      | Superuser, Create DB                                       | {}
 postgres   | Superuser, Create role, Create DB, Replication, Bypass RLS | {}

postgres=# exit

Finally, user is created as well assigned superuser rights. Also, one more command you have to execute and exit it.

createdb stable --encoding=UNICODE

Step 4 Download Odoo 15

Go to workspace path

cd /home/twink/workspace   // here "twink" is a username

Download Odoo 15 source code from Github

git clone --depth 1 --branch 15.0 --single-branch

Alternate you can download ZIP file from Github Odoo Repository.

Step 5 Install Python depended modules

Once the source code downloaded, You have to go to that directory. Here you see requirement.txt file. Python dependencies listed in the requirements.txt file. You have to execute the below command to install depended Python modules using pip3.

cd /15.0
sudo pip3 install -r requirements.txt

Step 6 Install Wkhtmltopdf

Download and install the Wkhtmltopdf package. The recommended version is 0.12.5 (with patched qt) and it is available on the wkhtmltopdf download page, in the archive section.

sudo apt install ./wkhtmltox_0.12.5-1.bionic_amd64.deb

Step 7 Run Odoo 15

Even more, you have to find odoo-bin executable file in Odoo 15. You have to give the following access right to execute.

sudo chmod 775 odoo-bin

Finally, you have to execute the odoo-bin command to start Odoo 13 in your local machine.


Step 8 Go to Web browser

To access Odoo 15, go to the following URL and create a new database.


Final Thoughts

This article walked you through the install Odoo 15 on Ubuntu 20.04 in the local machine. Even more, installed PostgreSQL, wkhtmltopdf, and other python dependencies.

We hope you have found this article helpful. Let us know your questions or feedback if any through the comment section in below. You can subscribe our newsletter and get notified when we publish new articles. Moreover, you can explore here other Odoo related articles.

If you like our article, please consider buying a coffee for us.
Thanks for your support!

Support us on Buy me a coffee! Buy me a coffee!

1 Response Leave a Comment

  1. at Step 6
    i need to add the extra prerequisite is anyone has make errors

    apt-get install libpq-dev

Join the Discussion.