Install OpenERP 7.0 from trunk

While expecting the new release of OpenERP 7.0 I’ve wrote this simple tutorial how to install OpenERP 7.0 on Debian Linux and testing your custom modules.

Prepare your Debian Squeeze server

Create openerp user that will be used for running the OpenERP application

ADVERTISEMENT

adduser --system --quiet --shell=/bin/bash --home=/opt/openerp --gecos 'OpenERP' --group openerp

Install PostgreSQL database server and add openerp as a postgres superuser

apt-get install postgresql
su - postgres -c "createuser -s openerp" 2> /dev/null || true

Install all the required dependencies for OpenERP

# EDIT: added python-unittest2 and python-mock thanks for the comments
# EDIT2: Added python-jinja2 because i got error: openerp.addons.email_template.email_template: jinja2 not available, templating features will not work!

apt-get install python-dateutil python-feedparser python-gdata 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-zsi python-docutils \
    python-psutil bzr wget python-unittest2 python-mock python-jinja2

install latest gdata-python-client from http://code.google.com/p/gdata-python-client/downloads/list

wget http://gdata-python-client.googlecode.com/files/gdata-2.0.17.tar.gz
tar zxvf gdata-2.0.17.tar.gz
cd gdata-2.0.17/
python setup.py install

Install OpenERP 7.0 from launchpad’s trunk

We are going to get the latest files from launchpad.net repository and place them into /opt/openerp

EDIT: changed the trunk branch to 7.0 branch which was created after the 7.0 launch

su - openerp
cd /opt/openerp
bzr branch lp:openobject-server/7.0 server
bzr branch lp:openobject-addons/7.0 addons
bzr branch lp:openerp-web/7.0 web

I’ve created a simple bash script for starting OpenERP where i and changing just the ports so i can run multiple instances and also catch 5 args for some custom start

vi start

# EDIT: added full path to addons-path

#!/bin/bash
./server/openerp-server --xmlrpc-port=40069 --netrpc-port=40070 --addons-path=/opt/openerp/addons,/opt/openerp/web/addons $1 $2 $3 $4 $5 &

If you want to see all the options that you can use type

./server/openerp-server -h

Now make the file executable and start the server

chmod +x start
./start

# EDIT: if you want yo use all options see my post where I’ve explained most of the config options openerp-server.conf for OpenERP 7 explained

Now you can start your OpenERP 7.0 server on http://<Your_Server_IP>:40069/ and start testing your modules. Also don’t forget that this is a development versions and changes are made every day.

OpenERP 7.0 Web Interface

To enable the old Extended view and have more options available for you make sure you enable Technical Features under Settings-> Administrator-> Access Rights

OpenERP7 Technical Features

Note: If you want to contribute to the community visit the launchpad’s OpenERP project website.

OpenERP Server: https://launchpad.net/openobject-server
OpenERP Addons: https://launchpad.net/openobject-addons
Web modules: https://launchpad.net/openerp-web

ADVERTISEMENT