Install OpenERP V8.0 on Ubuntu/Debian for development environment

Since May 15, 2014 OpenERP S.A announced several news, the most appreciable one for the OpenERP community was the move of source code from Launchpad to Github. Unfortunately, I did not find neither the time, neither the energy to build an development environment for the 8.0 version. So, today I decided to build it and share this experience with you.

Installation steps

1. As we will install Odoo from Github, we have to install git package

sudo apt-get install git

2. Let’s update the system and install requirement packages

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install graphviz ghostscript postgresql-client \
    python-dateutil python-feedparser python-matplotlib \
    python-ldap python-libxslt1 python-lxml python-mako \
    python-openid python-psycopg2 python-pybabel python-pychart \
    python-pydot python-pyparsing python-reportlab python-simplejson \
    python-tz python-vatnumber python-vobject python-webdav \
    python-werkzeug python-xlwt python-yaml python-imaging

3. Create the database role odoo with the required privileges

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

then exit form the postgres account


Remember the password entered, you need it for the configuration of Odoo (step 6)

4. Create odoo user

adduser --system --quiet --shell=/bin/bash --home=/opt/odoo --gecos 'Odoo' \
    --group odoo

5. Let’s now login as odoo user and clone the odoo repository

sudo su - odoo
git clone -b 8.0

6. Configuration of Odoo

cd odoo/odoo
cat > odoo.rc << EOF
db_host = False
db_port = False
db_user = odoo
db_password = False
Then open odoo.rc file and updat e the line db_password = False by the password chosen in step 3)

7. Run the server and get fun

./ -c odoo.rc

Now open your browser and go to and create your first database


Multi-address in OpenERP V7.0

OpeneRPP manage natively multiple addresses for each partner. Remind a partner in openerp, includes both a client a supplier. In version 7.0, this option is not active by défaut, you will certainly need to manage multiple addresses for your partners. Indeed, it is very common to charge a client an address and send the bill to a second address. To activate it:

  1. proceed to the Configuration section
  2. In the left sidebar, under the subpart Configuration choose sales
  3. Then check “Allow a different address for delivery and invoicing” checkbox


Good bye Bazaar and Launchpad !

The transition from OpenERP to Odoo comes with an excellent new technique:

Get rid of BZR!

The really good news is the abandonment of Bazaar and Launchpad, which were a serious handicap. The merger of the three bazaar branches into only 1 Git repository should be able to speed up things and facilitate the contribution. Even if the contribution process is not yet well defined on github,  but it would be highly desirable if it will be organized around a merges’s rise model, like the Linux kernel.

Saving time and disk space

Clone a repository from github takes a lot less time than recovering a bazaar branch on Launchpad. In addition to time savings, it also save disk space. Here is a comparison of the sizes of deposits:
OpenERP in BZR
openobject-server 154 Mo
openobject-addons 692 Mo
openerp-web 33 Mo
Odoo (Github)
Odoo 432 Mo
The only thing that we lose with git is the notion of shared repository of Bzr.