Odoo is a powerful open-source business management software that can be used to manage a wide range of business operations, including accounting, sales, purchasing, inventory, and more. In this article, we will walk you through the process of installing Odoo 11 on Ubuntu 16.x.

Prerequisites

Before you begin, there are a few prerequisites that you will need to meet:

  1. A fresh installation of Ubuntu 16.x
  2. A user with sudo privileges
  3. A reliable internet connection

Step 1: Update the System

The first step in installing Odoo is to update your Ubuntu system. This will ensure that you have the latest security updates and packages. To update your system, run the following command:

sudo apt-get updatesudo apt-get -y upgradeCode language: JavaScript (javascript)

Step 2: Install Required Packages

Next, you will need to install some required packages. This includes the following:

sudo apt-get install python3-pip postgresql postgresql-server-dev-9.5 build-essential python3-dev libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-dev libxml2-dev libevent-dev libsasl2-dev npm node-lessCode language: JavaScript (javascript)

Step 3: Install Dependencies Using pip3

pip3 install Babel decorator docutils ebaysdk feedparser gevent greenlet html2textJinja2 lxml Mako MarkupSafe mock num2words ofxparse passlib Pillow psutilpsycogreen psycopg2 pydot pyparsing PyPDF2 pyserial python-dateutil python-openidpytz pyusb PyYAML qrcode reportlab requests six suds-jurko vatnumber vobjectWerkzeug XlsxWriter xlwt xlrd

Step 4: Install Wkhtmltopdf

Wkhtmltopdf is a command-line tool that allows you to convert HTML pages to PDF files. Odoo requires this package to generate PDF reports. To install Wkhtmltopdf, run the following command:

sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.debCode language: JavaScript (javascript)

Step 5: Odoo Web Dependencies

sudo apt-get install -y npmsudo ln -s /usr/bin/nodejs /usr/bin/nodesudo npm install -g less less-plugin-clean-csssudo apt-get install node-lessCode language: JavaScript (javascript)

Step 6: Install PostgreSQL 9.6+

sudo apt-get install python-software-propertiessudo vim /etc/apt/sources.list.d/pgdg.listCode language: PHP (php)

add a line for the repository

deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg mainwget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -sudo apt-get updatesudo apt-get install postgresql-9.6Code language: JavaScript (javascript)

Step 7: Create Database User for Odoo

sudo su postgrescdcreateuser -s odoocreateuser -s ubuntu_user_nameexitCode language: PHP (php)

Step 8: Create Odoo User and Group

sudo adduser --system --home=/opt/odoo --group odooCode language: JavaScript (javascript)

Step 9: Install Gdata

cd /opt/odoosudo wget https://pypi.python.org/packages/a8/70/bd554151443fe9e89d9a934a7891aaffc63b9cb5c7d608972919a002c03c/gdata-2.0.18.tar.gzsudo tar zxvf gdata-2.0.18.tar.gzsudo chown -R odoo: gdata-2.0.18sudo -scd gdata-2.0.18/python setup.py installexitCode language: PHP (php)

Step 10: Download Odoo 11

Go to the url : URL : “https://github.com/odoo/odoo/tree/11.0″ Download the Zipped File Transfer the file to /opt/odoo directory on server through ftp. or Follow the steps below

cd /opt/odoosudo apt-get install gitsudo su - odoo -s /bin/bashgit clone https://www.github.com/odoo/odoo --depth 1 --branch 11.0 --single-branchCode language: PHP (php)

Step 11: Create Odoo Log File

sudo mkdir /var/log/odoosudo chown -R odoo:root /var/log/odooCode language: JavaScript (javascript)

Step 12: Edit Odoo configuration file

sudo vim /etc/odoo.conf

Copy and paste below content in config file and write correct addons paths

[options]; This is the password that allows database operations:; admin_passwd = admindb_host = Falsedb_port = Falsedb_user = odoodb_password = Falselogfile = /var/log/odoo/odoo-server.logaddons_path = /opt/odoo/addons,/opt/odoo/odoo/addonsCode language: PHP (php)

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

sudo chown odoo: /etc/odoo.confCode language: JavaScript (javascript)

Step 13: WKHTMLTOPDF ( Supported Version 0.12.1 ) for Odoo

sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.debsudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.debsudo cp /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimagesudo cp /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdfCode language: JavaScript (javascript)

Step 14: Start Odoo Server

cd /opt/odoo/odoo./odoo-bin

Step 15: Go to your web browser to access Odoo 11

http://localhost:8069

and Press Enter.

Similar Posts

Leave a Reply