Install Odoo 11 on Ubuntu 16.04

Hi Guys. I will share with you the easiest installation guide of odoo 11 on Ubuntu 16.04 LTS. And EXPLORE AMAZING NEW FEATURES OF “Odoo 11″. To know What’s New in Odoo 11, just >>> Click Here <<

Step 1:  Update apt source list

sudo apt-get update

Step 2: Install Updates

sudo apt-get -y upgrade

Step 3: Install Python Dependencies for Odoo 11

sudo apt-get install python3-pip

pip3 install Babel decorator docutils ebaysdk feedparser gevent greenlet html2text Jinja2 lxml Mako MarkupSafe mock num2words ofxparse passlib Pillow psutil psycogreen psycopg2 pydot pyparsing PyPDF2 pyserial python-dateutil python-openid pytz pyusb PyYAML qrcode reportlab requests six suds-jurko vatnumber vobject Werkzeug XlsxWriter xlwt xlrd

If you face problem “locale.Error: unsupported locale setting”,

Error :

ubuntu@:~$ sudo pip3 install boto3
Traceback (most recent call last):
 File "/usr/bin/pip3", line 11, in <module>
 File "/usr/lib/python3/dist-packages/pip/", line 215, in main
 locale.setlocale(locale.LC_ALL, '')
 File "/usr/lib/python3.5/", line 594, in setlocale
 return _setlocale(category, locale)
locale.Error: unsupported locale setting

To Fix :

export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
sudo dpkg-reconfigure locales

Above 3 commands will reconfigure locales and that should solve the issue.

Step 4: Odoo Web Dependencies

sudo apt-get install -y npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo npm install -g less less-plugin-clean-css
sudo apt-get install node-less

Step 5: Install PostgreSQL 9.6+

sudo apt-get install python-software-properties
sudo vim /etc/apt/sources.list.d/pgdg.list

add a line for the repository

deb xenial-pgdg main

Then perform this

wget --quiet -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.6

Step 6: Create Database user for Odoo

sudo su postgres
createuser -s odoo
createuser -s ubuntu_user_name

Step 7: Create Odoo user and group

sudo adduser --system --home=/opt/odoo --group odoo

Step 8: Install Gdata

sudo wget
sudo tar zxvf gdata-2.0.18.tar.gz
sudo chown -R odoo: gdata-2.0.18
cd gdata-2.0.18/
sudo python install

Step 9: Odoo 11 Download from GitHub

cd /opt/odoo
sudo apt-get install git
sudo su - odoo -s /bin/bash
git clone --depth 1 --branch 11.0 --single-branch

Step 10:  Create Odoo Log File

sudo mkdir /var/log/odoo
sudo chown -R odoo:root /var/log/odoo

Step 11: Edit Odoo configuration file

sudo vim /etc/odoo.conf

#Copy and paste below content in config file , write correct addons paths
; This is the password that allows database operations:
; admin_passwd = admin
db_host = False
db_port = False
db_user = odoo
db_password = False
logfile = /var/log/odoo/odoo-server.log
addons_path = /opt/odoo/addons,/opt/odoo/odoo/addons

Save and Exit the file. Now run the below command on terminal to grant ownership.

sudo chown odoo: /etc/odoo.conf

Step 12: WKHTMLTOPDF ( Supported Version 0.12.1 ) for Odoo

sudo apt-get -f install
sudo wget
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf

Step 13: Now Start Odoo Server

cd /opt/odoo/odoo

Step 14: Go to web browser to access Odoo 11


Tags: , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: