Tuesday, 8 September 2015

Odoo/OpenERP installation steps for Ubuntu



Get the Odoo source from the following link : 

https://github.com/odoo/odoo


Now after downloading the source of Odoo / OpenERP, you need to install the required supporting packages into the system for running the Odoo / OpenERP successfully.

To install related require packages go through the below command in the terminal :

sudo apt update


sudo apt upgrade



After update command go through the below commands.

sudo apt-get install python-lxml
sudo apt-get install python-passlib
sudo apt-get install python-werkzeug
sudo apt-get install python-decorator
sudo apt-get install python-dateutil
sudo apt-get install python-tz
sudo apt-get install python-psycopg2
sudo apt-get install python-pybabel
sudo apt-get install python-reportlab
sudo apt-get install python-mako
sudo apt-get install python-pychart
sudo apt-get install python-psutil
sudo apt-get install python-jinja2
sudo apt-get install python-docutils
sudo apt-get install python-pypdf
sudo apt-get install node-less
sudo apt-get install python-feedparser
sudo apt-get install python-gdata
sudo apt-get install python-ldap
sudo apt-get install python-libxslt1
sudo apt-get install python-openid
sudo apt-get install python-pydot
sudo apt-get install python-pyparsing
sudo apt-get install python-simplejson
sudo apt-get install python-vobject
sudo apt-get install  python-webdav
sudo apt-get install  python-xlwt
sudo apt-get install  python-vatnumber
sudo apt-get install  python-zsi
sudo apt-get install python-dev
sudo apt-get install libevent-dev
sudo apt-get install gcc
sudo apt-get install  libxml2-dev
sudo apt-get install libxslt-dev
sudo apt-get install openssl build-essential xorg libssl-dev
sudo apt-get install python-gevent
sudo apt-get install python-mock
sudo apt-get install python-unittest2
sudo apt-get install python-yaml
sudo apt-get install python-markupsafe
sudo apt-get install python-pip
sudo apt-get install python-pillow
sudo apt-get install python-sphinx-argparse
sudo apt-get install python-greenlet
pip install jcconv (upgrade it)
sudo apt-get install python-psycogreen
sudo apt-get install python-serial
pip install pytz
sudo pip install pyusb
sudo apt-get install python-qrcode
sudo apt-get install python-requests
sudo apt-get install python-six

sudo apt-get install python3-pip

sudo python3.6 -m  pip install pypdf2 Babel passlib Werkzeug decorator python-dateutil pyyaml psutil html2text docutils lxml pillow num2words reportlab ninja2 requests gdata XlsxWriter vobject python-openid pyparsing pydot mock mako Jinja2 ebaysdk feedparser xlwt xlrd gevent greenlet MarkupSafe ofxparse psycogreen pyserial pytz pyusb qrcode six suds-jurko vatnumber

pip3 install psycopg2-binary
sudo apt-get install nodejs node-less
sudo apt-get install npm
sudo npm install -g less

sudo npm install -g less-plugin-clean-css

sudo python3.6 -m pip install libsass

Once you install the python packages, you need to install the Postgresql install by following steps:
sudo apt-get install PostgreSQL-10
sudo su postgres
createuser <username>
psql -l
psql template1
alter role <username> with password 'postgres';
alter role <username> with SUPERUSER;


Once you install all these packages, you need to install PgAdmin. To install, go to the Ubuntu software center and install it on your system.


For configuring the PgAdmin for details of tables for the database created from Odoo/OpenERP. The below image shows the configuration of the Postgres server in PgAdmin. 





To configure the server, go to the Add server option and it will be given below the screen for configuring. Go with your username and password for configuring it.





For missing package and unknown packages you find from below link :

https://pypi.python.org/simple

To install the downloaded package follow the below commands :

tar zxvf packagename.tar.gz
cd packagename
sudo python setup.py install


Now your system is ready to run Odoo / OpenERP server.


I hope this above procedure will help you in the installation process of Odoo/OpenERP.

Thanks & Regards.