I downloaded Open ERP server & web, having decided against the thicker gtk. I added the 2 as projects in eclipse, pydev running on Ubuntu 11.10 and started then up. I we
I feel your pain. I went through the same process a couple of years ago when I started working with OpenERP. The good news is that it's not too hard to set up, and OpenERP runs smoothly in Eclipse with PyDev.
Start by looking at the developer book for OpenERP. They lay out most of the requirements for getting it running.
To try and answer your specific questions, you shouldn't need to run the setup.py
script at all in your development environment. It's only necessary when you deploy to a server. To get the server to recognize a new module, go to the administration menu, and choose Modules Management: Update Modules List. I'm still running OpenERP 5.0, so the names and locations might be slightly different in version 6.1.
For the project configuration in Eclipse, I just checked out each branch from launchpad, and then imported each one as a project into my Eclipse workspace. The launch details are a bit different between 6.0 and 6.1. Here are my command line arguments for each:
6.0:
--addons-path ${workspace_loc:openerp-addons-6.0} --config ${workspace_loc:openerp-config/src/server.config} --xmlrpc-port=9069 --netrpc-port=9070 --xmlrpcs-port=9071
6.1 needs the web client to launch with the server:
--addons-path ${workspace_loc:openerp-addons-trunk},${workspace_loc:openerp-web-trunk}/addons,${workspace_loc:openerp-migration} --config ${workspace_loc:openerp-config/src/server.config} --xmlrpc-port=9069 --netrpc-port=9070 --xmlrpcs-port=9071
using eclipse kepler sr 1, pydev 3.1.0, openerp 7.0 from launchpad using bzr, ubuntu 13.10. This is how I got the whole thing loaded. I have skipped the part where I got the thing to work. This only covers retrieving the sources and being able to open/modify the openerp source in eclipse/pydev.
There are three bzr repositories you need to get, the server, the web client addons and the bundled addons.
So I created a top level directory called openerp-bzr
. In this directory, I checked out the sources with the following command. Note the use of checkout
and --lightweight
, these options prevent fetching of all the logs and history (making it much smaller and faster). You may want to omit the --lightweight if you want to get everything and change the checkout to branch
if that is what you want to do. Back to business. You will have create an account on launchpad and register your ssh keys and configure your bzr.
bzr checkout --lightweight lp:openobject-server/7.0 openobject-server-7.0
bzr checkout --lightweight lp:openerp-web/7.0 openerp-web-7.0
bzr checkout --lightweight lp:openobject-addons/7.0 openobject-addons-7.0
(these folders that just got created, I will call them source folders
).
(insert here the instructions to get this to work, which includes configuring the configuration file, setting the PYTHONPATH and downloading all the dependencies. I will add these in the weekend).
Then, still in the openerp-bzr
folder, I create links. The first folder openerp-7.0
that is created, I will call it link folder
.
ln -s openobject-server-7.0 openerp-7.0
cd openerp-7.0/openerp/addons
ln -s ../../../openobject-addons-7.0/* .
ln -s ../../../openerp-web-7.0/addons/* .
Now, if your eclipse is properly setup, you create a new pydev project, checking the create links to existing sources (select them on the next page), go next and add
openerp-7.0` (the link folder).
You can do bzr update in the source folders.
When you develop addons, create the actual folders somewhere else and then link them into the the addons folders in the link folder. This will make it look like you are working in the same tree, you will get all the references and code completion as well as (hopefully, because I have not tested this part!) debugging.