how to setup eclipse for coding openerp

Asked by Akshay Jain on 2010-03-19

how can i setup the eclipse ide for coding modules for openerp? Following is my system config:

OS: Windows XP SP3
IDE: Eclipse with Pydev
OpenERP: 5.0.7
Bazaar: 1.0

Is there any step by step guide/resources on how to get eclipse ready for openerp coding on WINDOWS?

Question information

English Edit question
Odoo Addons (MOVED TO GITHUB) Edit question
OpenERP Committers Edit question
Last query:
Last reply:
t.o (emailbox4oerp) said : #1



(french forum)

Using Eclipse (development platform) to create their own modules and test them for OpenERP.
The principle is simple, you must run the server openerp from eclipse, so it allows you to debug your sources.

I found many posts on the subject, but none gave any information necessary and only by crossing all the information that I did it. Therefore, you will find below the compilation settings made.
Thank you to past and future contributors to improve the completeness of this message (Oscar Agreda, cedo, Lars Vogel, kantnfahrer, ...)

OpenERP v5.0.6
Eclipse SDK 3.5.1
For info installation was done under Windows XP, which certainly complicates things ...


1 - First of all facilities

openerp facility you will find many posts on the subject Wink to download:
Installing the JDK 6 Update 18:
Eclipse Classic 3.5.1:

conventional system and rather simple to do, you can find a well done video on the subject:

2 - Installing python2.5 and all libraries needed to run pyhon OpenERP

the list is as follows:

Pychart-1.39.win32.exe (created by Stephane Wirtel)
vobject-0.7.1.win32.exe (created by Stephane Wirtel)
install by default (in C: \ GTK with options by default)
install by default (in C: \ GTK with options by default)
pydot-1.0.2.win32.exe (created by Stephane Wirtel)

you can find them here: ~ openerp / openerp / win-installer-trunk / files / head% 3A/dependencies /

Tip: You can not install all the library and wait for Eclipse prompts you to install a particular component.

3 - Setting up eclipse with pydev

Launch Eclipse
Help Make / Install New Software
To Add (name = Pydev; url =
Select: Pydev

Make Window / Preferences
Select Pydev / Interpreter-Python
Add new and select the installation directory of your Python 2.5 and update.

4 - Preparing the ground to create your project in eclipse

Have your server a directory with all sources OpenERP (for download: eg C: \ OpenERP \

Add to the root directory of the configuration file: openerp-server.conf
change the following items (logfile, pg_path, root_path, addons_path) for this to be consistent with your environment
also modify the following parameter: debug_mode = true

5 - Create the project in Eclipse

In Eclipse
Make File / New / Pydev Project
Give the name you want
Uncheck the box: use default
Select the directory that you created in the previous step (eg C: \ OpenERP \)
Choose: Project Type = Python Grammar version2.5, and the interpreter that you set in the third stage.

6 - Making the connection to the debug

In Eclipse
Make Run / Debug Settings ...
In the left list choose PythonRun and right-click New
Give a name of your choice
In the Main tab: Project = your new project, Main module = $ (workspace_loc: OpenERP /

Then you can start the debug mode in the control window you need: pydev debugger: starting
Otherwise you are missing a library, and add restart, until the message.
The execution trace is visible in the file log = server.log-openerp

Then start a client OpenERP and it's up to you

To set a breakpoint in a python file: choose a file from the list on the left view and right click to add a breakpoint.

To go further:

Tuning ecliptic for xml:
In Eclipse
Help Make / Install New Software
Select: Galileo -
Then: Web, XML and Java EE development

Integration of templates openerp:
to assist you in developing your modules

The necessary files:

you have a video to explain here:
and the second here

Akshay Jain (akshay-jain-7983) said : #2

Hi Oli,

I cannot find any file in my openerp installation and neither could find it in bazaar. Where can i get this file?

Akshay Jain (akshay-jain-7983) said : #3


On windows openerp is started as a windows service and not by invoking How can eclipse debug in such a case? Are you sure the windows installers on have this file?

Oli (oli) said : #4

Whoever just assigned the bug to me, please revert that.

I am not the same Oli that posted the first reply... That was ~cpvoso. I am ~oli

Akshay Jain (akshay-jain-7983) said : #5

Ok guys I have got it working by getting sever lp:openobject-server/5.0 from and dependencies from lp:~openerp/openerp/win-installer-trunk

But the server installation from DOES NOT have any file. It would be good if it has this file in future releases but for now anyone wanting to set up openerp in eclipse on windows should get server from lp:openobject-server/5.0

It works correctly but there is one big trouble i.e. when i launch server from eclipse then i am not able to create a new database BUT when i launch the server from Windows service then i can easily create database. So dont know why i cannot create a new database when server is launched from eclipse??

We have got a free course on to set up openerp-eclipse

Anybody can register and try the course. Sorry, It's written in spanish.
Maybe google translator could help you.

2010/3/30 vra (openerp) <email address hidden>

> Question #104901 on OpenObject Addons changed:
> Assignee: None => OpenERP Commiters
> --
> You received this question notification because you are the assignee for
> this question.

Ana Juaristi Olalde
Consultor Freelance OpenERP
677 93 42 59 - 943 85 06 25

Can you help with this problem?

Provide an answer of your own, or ask Akshay Jain for more information if necessary.

To post a message you must log in.