How to install Odoo 11 in virtualenv on Ubuntu 16.04

There are several ways to install Odoo depending on the required use case. The easiest and quickest way to install Odoo is by using their official repositories but if you want to have more control over versions and updates or if you want to run multiple Odoo versions on your machine then this approach will not work for you because the Odoo package doesn’t allow multiple Odoo installations on a same machine. In this case you can either use docker containers or install Odoo by creating a virtualenv environment and fetching the Odoo code from their Github repository. This guide covers the steps necessary for installing and configuring Odoo using Git source and Python virtualenv on Ubuntu 16.04.