Friday, April 3, 2015

Create Odoo Development Environment on Ubuntu


After choosing yourOS and IDE you can move to develop odoo modules.

For that you need to install some required python packages & PostgreSQL & VCS. It is too easy to set up a development environment for odoo. Here are the easy steps.


1. Install required python library for odoo
sudo apt-get install python-pip python-dateutil python-feedparser 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 python-mock python-unittest2 python-jinja2 python-pypdf python-decorator python-requests python-passlib python-pil -y

2. Install wkhtmltopdf for 32 or 64 bit system
for 32 bit:
wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.2.1/wkhtmltox-0.12.2.1_linux-precise-i386.deb
sudo dpkg -i wkhtmltox-0.12.2.1_linux-precise-i386.deb
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin

for 64 bit:
wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.2.1/wkhtmltox-0.12.2.1_linux-precise-amd64.deb
sudo dpkg -i wkhtmltox-0.12.2.1_linux-precise-amd64.deb
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin

3. Install and configure PostgreSQL for odoo development(do not install postgres 8.4 for odoo v8)

sudo apt-get install postgresql-9.3 pgadmin3

After installation create a PostgreSQL user same as your system user.(it is for development environment only). here is a example using 'software' user
sudo su postgres
createuser -d -S -R software
now change the password of created user using psql
psql
alter user software with password 'mypassword';

Now you are almost done with your development environment. now you need to get the odoo source from the github.

4. Get Odoo Source from Github.
install git
sudo apt-get install git
sudo git clone --branch 8.0 https://www.github.com/odoo/odoo /home/software/odoo/

It will clone the odoo branch from the github on /home/software/odoo/ path.

Now using this odoo environment you can start your odoo development. I will write a simple bash script which will perform all the steps in one file.
subscribe for the latest update.

Thanks for visiting my blog.

No comments:

Post a Comment