how to install odoo 14 in ubuntu 20.04

Odoo is an open-source enterprise resource planning (ERP) software that includes customer relationship management (CRM), e-commerce, accounting, billing, inventory management, project management, warehouse management, financial management, manufacturing, and purchasing. In this blog, you will know the steps in installation and configuration of Odoo 14 in your Ubuntu 20.04

  • The first thing to do is to update your server:
sudo apt-get update
sudo apt-get upgrade -y
  • Create Odoo User in Ubuntu
sudo adduser -system -home=/opt/odoo -group odoo
  • Install PostgreSQL Server
sudo apt-get install postgresql -y
  • Create Odoo user for PostgreSQL
sudo su - postgres -c "createuser -s odoo" 2> /dev/null || true
  • Install Python Dependencie
sudo apt-get install git python3 python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less libjpeg-dev gdebi -y
  • Install Python PIP Dependencies
sudo apt-get install libpq-dev python-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libffi-dev 
sudo -H pip3 install -r 
  • Install other required packages
sudo apt-get install nodejs npm -y
sudo npm install -g rtlcss
  • Install Wkhtmltopdf
sudo apt-get install xfonts-75dpi
sudo wget
sudo dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf

If it resulted to error make sure that you already install wkhtmltopdf for it to be fixed.

  • Create a Log Directory
sudo mkdir /var/log/odoo
sudo chown odoo:odoo /var/log/odoo
  • Install Odoo
sudo apt-get install git
sudo git clone --depth 1 --branch 14.0 /odoo/odoo-       server
  • Setting permissions on home
sudo chown -R odoo:odoo /odoo/*
  • Create server config file
sudo touch /etc/odoo-server.conf
sudo su root -c "printf '[options]\n; This is the password that allows database operations:\n' >> /etc/odoo-server.conf"
 sudo su root -c "printf 'admin_passwd = admin\n' >> /etc/odoo-server.conf"
sudo su root -c "printf 'xmlrpc_port = 8069\n' >> /etc/odoo-server.conf"
sudo su root -c "printf 'logfile = /var/log/odoo/odoo-server.log\n' >> /etc/odoo-server.conf"
sudo su root -c "printf 'addons_path=/odoo/odoo-server/addons\n' >> /etc/odoo-    server.conf"
sudo chown odoo:odoo /etc/odoo-server.conf
sudo chmod 640 /etc/odoo-server.conf
  • Start the Odoo
sudo su - odoo -s /bin/bash
sudo su - odoo -s /bin/bash
./odoo-bin -c /etc/odoo-server.conf

Now you can go to your browser and access Odoo on your localhost.

Leave a Comment

Your email address will not be published. Required fields are marked *