Beginning

Odoo (former OpenERP) is a collection of web based open source business apps. With Odoo you manage below operations:

  • Can boost your sales like CRM, POS, Sales, Subscriptions
  • Run your operations better like Projects, Inventory, Purchase, Manufacturing
  • Improve your marketing like Email Marketing, Events, Survey, Adwards, Live Chat
  • Get control of your finances like Invoicing, Accounting 
  • Manage all HR activities

Odoo Installation Process

Step 1: Update your server packages using below command

Shell
1apt-get update

Step2:  Install Python and required dependency packages

 

Shell
1apt-get install python-cups python-dateutil python-decorator python-docutils python-feedparser \
2python-gdata python-geoip python-gevent python-imaging python-jinja2 python-ldap python-libxslt1
3python-lxml python-mako python-mock python-openid python-passlib python-psutil python-psycopg2
4python-pybabel python-pychart python-pydot python-pyparsing python-pypdf python-reportlab python-requests \
5python-simplejson python-tz python-unicodecsv python-unittest2 python-vatnumber python-vobject \
6python-werkzeug python-xlwt python-yaml wkhtmltopdf

 

Step-3: Install and configure the database server, PostgreSQL

Shell
1apt-get install postgresql postgresql-contrib

 

Create Configure the Odoo user on postgres server:

 

Switch to postgres user and create a new database user called as odoo. Odoo user has access rights to connect to PostgreSQL and to create and drop databases. 

Also set password of odoo user, it required on your later activities.

Plain text
1su - postgres
2createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo

Enter password for new role: ********

Enter it again: ********

 

Note: Chose your password your self.

Use exit command to exit from postgres user

 

Step-4 Create Odoo user that will own and run the application

Plain text
1adduser --system --home=/opt/odoo --group odoo

Note: This is a system user, it isn’t supposed to be a normal or regular type user with a login or any thing. If any time you want to run Odoo server from server terminal , Log in with below command and start Odoo server.

Plain text
1su - odoo -s /bin/bash

 

Step-5  Install the Odoo server

Plain text
1Switch to the Odoo user:
2su - odoo -s /bin/bash

 

a. Download Odoo bundle from centralized or official repositories

 

URL: https://nightly.odoo.com/

 

Odoo 8 download URL: https://nightly.odoo.com/8.0/nightly/src/odoo_8.0.20160302.tar.gz

 

OR

https://nightly.odoo.com/8.0/nightly/src/odoo_8.0.latest.tar.gz

 

Run below command to download from Ubuntu terminal

 

wget https://nightly.odoo.com/8.0/nightly/src/odoo_8.0.latest.tar.gz

 

b. Extract downloaded bundle

Shell
1tar -zxvf odoo_8.0.latest.tar.gz

 C. Rename the directory structure properly.

 

exit from the odoo user

 

6. Configuring the OpenERP application

 

a. change proper owner group and permission

From user go to /opt directory

JavaScript
1cd /opt
2chown odoo:odoo odoo/ -R
3chown 755 odoo/ -R
4b. Create Odoo Log File
5mkdir /var/log/openerp
6chown -R odoo:root /var/log/openerp

 

7. Edit Odoo configuration file

Shell
1cp /opt/openerp/odoo-8.0/debian/openerp-server.conf /etc/openerp-server.conf
2chown odoo:odoo /etc/openerp-server.conf
3vim /etc/openerp-server.conf

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

 

JavaScript
1[options]
2;This is the password that allows database operations:
3admin_passwd = PASSWORD
4db_host = False
5db_port = False
6db_user = odoo
7db_password = False
8addons_path = /opt/openerp/odoo-8.0/addons
9;Log settings
10logfile = /var/log/odoo/odoo-server.log
11log_level = error

 

8. Setup Odoo service file

 

Shell
1cp /opt/openerp/odoo-8.0/openerp-server /etc/init.d/openerp-server
2chmod 755 /etc/init.d/odoo-server
3chown root: /etc/init.d/odoo-server

 

9. Now Start Odoo Server

 

Shell
1cd /opt/openerp/odoo
2./openerp-server
3Push Odoo server process in terminal background
4./openerp-server &

 

10. Go to web browser to access Odoo 8

 

http://localhost:8069

 

11. Stop/Kill Odoo server 

Plain text
1 netstat -ntlp | grep python-cups
2kill -9