QUICK INQUIRY !
Quick Contact
[contact-form-7 404 "Not Found"]
Home HOW TO INSTALL ODOO 10 COMMUNITY EDITION ON UBUNTU

HOW TO INSTALL ODOO 10 COMMUNITY EDITION ON UBUNTU


Odoo version 10 community edition recently got released. Globalteckz official Odoo partners brings you out tutorial guide and Odoo installation steps for version 10. In this Odoo installation Manual we will showcase How to install Odoo 10 community edition on Ubuntu. Hope this blog and steps on Odoo 10 installation guide will help you with successful installation of Odoo. For any further help or guidance on Odoo implementation and module development feel free to contact on sales@globalteckz.com or directly add us on Skype the id’s are “kadriazhar” and “abraar.patel”

Odoo 10 community version installation steps :

There are two way to get the Odoo source zip or git.

• Odoo zip can be downloaded from our nightly server or our Download page, the zip file then needs to be uncompressed to use its content

• git allows simpler update and easier switching between different versions of Odoo. It also simplifies maintaining non-module patches and contributions. The primary drawback of git is that it is significantly larger than a tarball as it contains the entire history of the Odoo project.

The git repository is https://github.com/odoo/odoo.git for the Community version.
Downloading it requires a git client (which may be available via your distribution on linux) and can be performed using the following command:

$ git clone https://github.com/odoo/odoo.git

If you use git, you must modify the –addons-path parameter of your launch command (init.d, custom script, configuration file, etc.). The Enterprise addons folder should be included before the default addons folder.

For example:

./odoo-bin –addons-path=~/src/custom_modules,~/src/odoo/addons

Python dependencies listed in the requirements.txt file.

  • On Linux, python dependencies may be installable with the system’s package manager or using pip.

For libraries using native code (Pillow, lxml, greenlet, gevent, psycopg2, ldap) it may be necessary to install development tools and native dependencies before pip is able to install the dependencies themselves. These are available in -dev or -devel packages for Python, Postgres, libxml2, libxslt, libevent, libsasl2 and libldap2. Then the Python dependecies can themselves be installed:

$ pip install -r requirements.txt

  • on OS X, you will need to install the Command Line Tools (xcode-select –install) then download and install a package manager of your choice (homebrew, macports) to install non-Python dependencies. pip can then be used to install the Python dependencies as on Linux:

$ pip install -r requirements.txt

  • on Windows you need to install some of the dependencies manually, tweak the requirements.txt file, then run pip to install the remaning ones.

Install psycopg using the installer here http://www.stickpeople.com/projects/python/win-psycopg/

Then edit the requirements.txt file:

  • remove psycopg2 as you already have it.
  • remove the optional python-ldap, gevent and psutil because they require compilation.
  • add pypiwin32 because it’s needed under windows.

Then use pip to install the dependencies using the following command from a cmd.exe prompt (replace \YourOdooPath by the actual path where you downloaded Odoo):

C:\> cd \YourOdooPath

C:\YourOdooPath> C:\Python2.7\Scripts\pip.exe install -r requirements.txt

  • Less CSSvia nodejs
    • on Linux, use your distribution’s package manager to install nodejs and npm.

Warning

In debian wheezy and Ubuntu 13.10 and before you need to install nodejs manually:

$ wget -qO- https://deb.nodesource.com/setup | bash –

$ apt-get install -y nodejs

In later debian (>jessie) and ubuntu (>14.04) you may need to add a symlink as npm packages call node but debian calls the binary nodejs

$ apt-get install -y npm

$ sudo ln -s /usr/bin/nodejs /usr/bin/node

Once npm is installed, use it to install less:

$ sudo npm install -g less

  • on OS X, install nodejs via your preferred package manager (homebrew, macports) then install less:

$ sudo npm install -g less

  • on Windows, install nodejs, reboot (to update the PATH) and install less:

C:\> npm install -g less

Running Odoo

Once all dependencies are set up, Odoo can be launched by running odoo.py.

Warning

For the Enterprise edition, you must specify the enterprise addons folder when starting your server. You can do so by providing the path to your enterprise folder in the addons-path parameter. Please note that the enterprise folder must come before the default addons folder in the list for the addons to be loaded correctly.

Configuration can be provided either through command-line arguments or through a configuration file.

Common necessary configurations are:

  • PostgreSQL host, port, user and password.

Odoo has no defaults beyond psycopg2’s defaults: connects over a UNIX socket on port 5432 with the current user and no password. By default this should work on Linux and OS X, but it will not work on windows as it does not support UNIX sockets.

  • Custom addons path beyond the defaults, to load your own modules

Under Windows a typical way to execute odoo would be:

C:\YourOdooPath> python odoo-bin.py -w odoo -r odoo –addons-path=addons,../mymodules –db-filter=mydb$

Where odoo, odoo are the postgresql login and password, ../mymodules a directory with additional addons and mydb the default db to serve on localhost:8069

Under Unix a typical way to execute odoo would be:

$ ./odoo-bin –addons-path=addons,../mymodules –db-filter=mydb$

Where ../mymodules is a directory with additional addons and mydb the default db to serve on localhost:8069

We hope with the above steps will help you to do Odoo installation successfully – We are also preparing a step by step tutorials on how to install Odoo on Windows machine. In case you face any issues feel free to contact us on sales@globalteckz.com

Our Articles related to Odoo 

 

Facebook Comments

Don’t miss these tips!