This article will explain to you how to setup Odoo development environment in Debian based distro.

Prerequisite:

I assume that you have installed a Debian-based Linux distribution on your PC. If you do not have I recommended you can install Ubuntu 16.04 LTS either alongside windows or in a virtual machine. you find many related links/videos for “install ubuntu alongside windows”.

Once you have the Ubuntu machine you can start installing libs/packages required to run Odoo.

before you start package installation run below command above

command above will downloads the package lists from the repositories and “updates” them to get information on the newest versions of packages and their dependencies.

Install required packages

run the below command to install basic required packages for odoo

Install Python packages

To install python packages, we will grab the content of https://github.com/odoo/odoo/blob/10.0/requirements.txt file in a temp directory and install using pip. I have concatenated the command in one line.

Note: if you wanted to install a different version of odoo you need to change the path of a requirement.txt file.

Install wkhtmltopdf

first, check if your Linux is 64 bit or 32 bit

i386 or i586 means OS is 32 bit
x86_64 means OS is 64 bit

For 64-bit arch install, wkhtmltopdf using below command (for ubuntu 16.04LTS)

For 32-bit arch install, wkhtmltopdf using below command (for ubuntu 16.04LTS)

Note: if you have a different version of the ubuntu you need to get the path from the Wkhtmltopdf download page.

Install & Configure PostgreSQL

Below command will install PostgreSQL

After installing Postgres check the version of the Postgres using

Now depending on the version you need to install postgresql-server-dev, if your version is 9.5.3 then 9.5 and if 9.4.0 then 9.4, run the below command

now login to the Postgres user into the terminal using below command.

Create Postgres user same as system user.

now change the password of created user using psql. here is the psql query to change the password.

Note: change the user and password to your system password in above command.

Now your PC is ready for the odoo development environment. you just need to clone the latest odoo code in your workspace and start odoo development in your favorite IDE.

Join the discussion One Comment

  • Hey! This is kind of off topic but I need some guidance from an established blog.

    Is it very difficult to set up your own blog? I’m not very
    techincal but I can figure things out pretty quick. I’m thinking about creating my
    own but I’m not sure where to begin. Do you have any points or suggestions?
    Many thanks

Leave a Reply