Posts Tagged ‘Command-line interface’

How to debug your OpenERP modules

Debugging your OpenERP modules is quite straightforward, as long as you know basic Python programming. Just insert the following line in your

English: Python logo Deutsch: Python Logo

Image via Wikipedia


import pdb;pdb.set_trace()

Then restart your openerp-server with the —debug option

# openerp-server –debug

Then monitor your server console. You will see your server stop and show you a command line prompt where you will be able to debug your program.
You will find further information in the Python documentation website.

Installing OpenERP 6.0 RC2 on Ubuntu 10.10

January 3, 2011 10 comments

OpenERP v6.0 RC2 has been released last week and I wanted to test it. This is what I did in my Linux Server, which is running Ubuntu 10.10. The first step is install the required packages, which is done either with Synaptic Package Manager or with the command line as follows:

sudo apt-get install python python-psycopg2 python-reportlab python-egenix-mxdatetime \
python-tz python-pychart python-pydot \ 
python-lxml python-vobject python-setuptools

sudo easy_install PyYaml

The next step is download the OpenERP v6.0 RC2 files from the website, which can be done from the OpenERP website or from the command line:

wget \
wget \
wget \

After downloading the files, unpack them (please, do that in a work directory). Unpacking the files will create three directories. The next step is optional, which is testing the server without installing it. This is done as follows:

cd openerp-server-6.0.0-rc2/bin

If you did not get any warning nor error messages, you are ready to install the server. This is done with the following command:

sudo python install

After installing the server, you will be ready to run it with the command:


The next step is to install the client, which is very similar to installing the server. First we need to check that all the required packages al already installed on the server:

sudo apt-get install python python-gtk2 python-glade2 \
python-matplotlib python-egenix-mxdatetime python-xml python-hippocanvas

You can test the client without installing it. This is almost identical to testing the server:

cd openerp-client-6.0.0-rc2/bin

If you did not get any error message and see the client running smoothly, you will be more than ready to install it. This is done with the following command:

sudo python install

As a final step, if you want to run the client you need to run


from the command line. This is how the client looks like:

I have not installed the web client yet, as soon as I do it I will write about it.