0% found this document useful (0 votes)
49 views5 pages

Setup

This document provides instructions for installing Odoo 13 or 14 on Ubuntu 18.04. It describes how to install dependencies like PostgreSQL and wkhtmltopdf. It also explains how to create a Python virtual environment, install Odoo source code into it from Git, and configure the environment and PyCharm IDE to run a local Odoo instance.

Uploaded by

THE ADIL
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views5 pages

Setup

This document provides instructions for installing Odoo 13 or 14 on Ubuntu 18.04. It describes how to install dependencies like PostgreSQL and wkhtmltopdf. It also explains how to create a Python virtual environment, install Odoo source code into it from Git, and configure the environment and PyCharm IDE to run a local Odoo instance.

Uploaded by

THE ADIL
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Setup Guide:-

Use postgres 10.0 for odoo:13 and postgres 10.15 for odoo:14

How to install (Ubuntu 18.04):


Use these commands to install git and some other dependencies.
$ sudo apt-get install -y git python3.7 postgresql nano virtualenv xz-utils wget
fontconfig libfreetype6 libx11-6 libxext6 libxrender1 node-less node-clean-css
xfonts-75dpi
$ sudo apt-get update
$ sudo apt-get upgrade

$ wget -O wkhtmltox.tar.xz https://github.com/wkhtmltopdf/wkhtmltopdf/releases/


download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

$ tar xvf wkhtmltox.tar.xz


$ sudo mv wkhtmltox/lib/* /usr/local/lib/
$ sudo mv wkhtmltox/bin/* /usr/local/bin/
$ sudo mv wkhtmltox/share/man/man1 /usr/local/share/man/

$ sudo apt-get install -y gcc python3.7-dev libxml2-dev libxslt1-dev libevent-dev


libsasl2-dev libssl1.0-dev libldap2-dev libpq-dev libpng-dev libjpeg-dev
$ sudo apt-get update
$ sudo apt-get upgrade

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


$ createdb $(whoami)
$ sudo apt-get update
$ sudo apt-get upgrade

To clone odoo source code:

$ git clone -b 13.0 --single-branch https://github.com/odoo/odoo.git


(use above command in src folder)

create two folders in programming folder by these commands:


$ mkdir programming
$ cd programming
$ mkdir src (for clone source code)
$ mkdir env (for creating environment)

Creating an environment:
Go to folder env then use this command to create an environment
$ cd env
$ virtualenv -p python3.7 <your env name>
then go to the environment folder that created from the above command and use
command to activate environment.
$ pip3 install -r src/odoo/requirements.txt
$ source <env>/bin/activate
to install the dependencies use the command
$ pip3 install -r src/odoo/requirements.txt
$ src/odoo/odoo-bin -sc env/<env name>/config/<config file name>.conf

Custom Modules:
For custom modules create a folder with name extra_addons and give the
path of that folder in environment configuration file in addons_path.
$ mkdir extra_addons
$ nano env/<your env name>/config/<config file name>.conf

Pycharm Configuration:
Go to setting then project and then select python interpreter.Click on setting then
add to add an environment and select the folder in environment bin/python3.7.

in base interpreter select the path of python3.7 as above.

To add odoo-bin path:


Open pycharm and select edit configuration
Then select left + button and then select python
In script path give the odoo-bin path
In parameteres give the environment path that you created and then apply.
Then check on browser localhost:8069

For more information of configuration check video on youtube


how to configure odoo with pycharm
how to create a module in odoo

You might also like