How to install odoo a.k.a openerp


What is Odoo ?

Odoo is the fastest evolving business software in the world. Odoo has a complete suite of business applications covering all business needs, from Website/Ecommerce down to manufacturing, inventory and accounting, all seamlessly integrated. It is the first time ever a software editor managed to reach such a functional coverage.

System Requirement ?

An Ordinery server with Ubuntu 14.04 LTS installed. You can install it on any platform, but here the documentations are based on the Ubuntu/debian server

Step 1: Create the Odoo user that will own and run the application
# sudo adduser --system --home=/home/odoo --group odoo
Step 2 : Install postgresql database
# sudo apt-get install postgresql
Step 3 : Create a database user with password

You must remember the password that you are giving

# sudo su - postgres
#createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo
Enter password for new role: ********
Enter it again: ********

# exit
Step 4. Install the necessary Python libraries for the server
# sudo apt-get install python-dateutil python-decorator python-docutils python-feedparser \
python-gdata python-gevent python-imaging python-jinja2 python-ldap python-libxslt1 python-lxml \
python-mako python-mock python-openid python-passlib python-psutil python-psycopg2 python-pybabel \
python-pychart python-pydot python-pyparsing python-pypdf python-reportlab python-requests \
python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-werkzeug \
python-xlwt python-yaml

Now install wkhtmltox

# sudo wget
# sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
# ln -s /usr/local/bin/wkhtmltopdf /usr/bin/wkhtmltopdf
# ln -s  /usr/local/bin/wkhtmltoimage /usr/bin/wkhtmltoimage
Step 5 : Install git client
# sudo apt-get install git

Step 6 : Install Odoo server
# sudo su - odoo -s /bin/bash
# git clone --depth 1 --branch 8.0 --single-branch .
# exit 
Step 7 : Configuring theĀ  Odoo / OpenERP application

Now you may need to setup the odoo-server.conf and the startup script as follows,

#sudo cp /home/odoo/debian/openerp-server.conf /etc/odoo-server.conf
#sudo chown odoo: /etc/odoo-server.conf
#sudo chmod 640 /etc/odoo-server.conf

Now edit the file /etc/odoo-server.conf and modify or add the lines as follows,

db_password = NEWPASSWORD   ( Change it to the password that you used on step 3 )
addons_path = /home/odoo/addons
logfile = /var/log/odoo/odoo-server.log

Now create the log folder and set permissions

# mkdir -pv /var/log/odoo/
# touch /var/log/odoo/odoo-server.log
# chown -R odoo: /var/log/odoo/

Step 8 : Installing the init scripts

You can download an init script from

# wget
# mv odoo-server.txt /etc/init.d/odoo-server
# chmod 750 /etc/init.d/odoo-server
# chown root:root /etc/init.d/odoo-server
Step 9. Testing the server

Start the server

# /etc/init.d/odoo-server start

You check the log file,

# tailf /var/log/odoo/odoo-server.log

Now you can login to the Odoo server  from the following link,

You will see a database initialization wizard . You need to give the master password , by default it will be “admin” . I recommend to change the password to a complex one.

Step 10 : Add the init scripts to the startup scripts

You may please add it as follows,

# sudo update-rc.d odoo-server defaults