Prj701 8 - Setting Up Odoo

September 26, 2018
PRJ701 Python Odoo Practical skills

Project 701 ~ Setting Up Odoo

The first thing I need to do is to ssh into the linux virtual machine that I created on Azure and install a few dependancies. Before I do that I will start with a simple sudo apt-get update && sudo apt-get upgrade. Now to install the following dependancies; git python3.5 python3.5-dev virtualenv vim postgresql xz-utils wget fontconfig libfreetype6 libx11-6 libxext6 libxrender1 node-less node-clean-css xfonts-75dpi libxml2-dev libxslt1-dev libevent-dev libsasl2-dev libssl1.0-dev libldap2-dev libpq-dev libpng-dev libjpg-dev. Quite a few…

Now to configure postgresql

sudo -u postgres createuser --createdb $(whoami)
createdb $(whoami)

The next thing I will do is configure my git credentials so that I can push/pull commits to/from the remote repository hosted on github.

git config --global user.name "Your Name"
git config --global user.email example@domain.com

With git configured now its time to clone the Odoo code base. It is important to note that the current version of Odoo is 11.0, which is why we specify 11.0 for the -b flag

sudo mkdir ~/odoo-dev
cd ~/odoo-dev
sudo git clone -b 11.0 --single-branch https://github.com/odoo/odoo.git

Next is to create a virtual environment and activate it

virtualenv -p python3 ~/odoo-env
source ~/odoo-env/bin/activate

Virtualenv allows me to now install any python dependancy listed within the requirements.txt file via the following command

sudo pip3 install -r requirements.txt

Everything that is necessary for the Odoo environment is now installed and ready. All there is to do left is to test and make sure the Odoo instance is running ok via the following

python3 ~/odoo-dev/odoo/odoo-bin

Going to X.X.X.X:8069 gives the login page of the Odoo instance ~ it works!

Web701 22

June 15, 2019
Web701 Serverless OpenFaas Docker CLI Python Digital Ocean

Web701 21

May 21, 2019
Web701 VirtualBox Serverless OpenFaas Docker CLI Python

Web701 20

May 20, 2019
Web701 Python Django Heroku Web Hosting
comments powered by Disqus