How can I install Odoo 9?
5 March, 2021 by
How can I install Odoo 9?
| No comments yet

#download and uncompress Odoo, change YYYYMMdd to match the name of your extracted Odoo folder

mkdir /opt/odoo
cd /opt/odoo
tar xvf odoo_9.0alpha1.latest.tar.gz
mv odoo-9.0alpha1-YYYYMMdd server

#install python-virtualenv if you don’t have it, I use Ubuntu

apt-get install python-virtualenv -y

#install this libraries needed for correctly install the requirements

apt-get install libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libssl-dev -y
apt-get install postgresql-server-dev-X.Y

#create a virtualenv

mkdir -p /opt/virtualenv/odoo-9.0
virtualenv /opt/virtualenv/odoo-9.0

#activate the virtualenv

source /opt/virtualenv/odoo-9.0/bin/activate

#install Odoo v9 requirements

pip install -r /opt/odoo/server/requirements.txt


pip install flanker
pip install ofxparser

#deactivate the virtualenv


#install nodejs and require modules

apt-get install nodejs npm
ln -s /usr/bin/nodejs /usr/bin/node
npm install -g less
npm install -g less-plugin-clean-css

That’s all I think. To run Odoo v9 using the virtualenv you have 2 options

1- Activate the virtualenv like before and run:

python /opt/odoo/server/ --config /path/to/config

2- Directly use the python in the virtualenv

/opt/virtualenv/odoo-9.0/bin/python /opt/odoo/server/ --config /path/to/config

The config file for Odoo is where you put Odoo options such as database conections options or add others addons modules to the addons path or specify other xmlrpc_port to run Odoo. Could be something like this:

admin_passwd = admin
db_host = localhost
db_port = 5432
db_user = odoo
db_password = odoo
xmlrpc_port = 8069
addons_path = /optodoo/server/openerp/addons,/opt/odoo/extra/addons
email_from =

In the addons_path option you could put a comma separated paths to addons folders

Hope this helps

Sign in to leave a comment