How to install odoo 14 on ubuntu 20.04 with pycharm as developmet


How to install odoo 14 on ubuntu

how to install odoo 14 on ubuntu 20.04 with pycharm for development
how to Install Odoo 14 on ubuntu 20.04

How to Install Odoo 14 on Ubuntu 20.04 : -

Odoo is a software has been build to manage and run your company.

To start coding on odoo ERP Software and create new modules

Follow these steps to install odoo 14 on ubuntu 20.04 with pycharm as source code :

First Open Terminal on your Ubuntu-20.04 computer and Start :

  • sudo apt-get update
  • sudo apt-get upgrade
  • sudo apt install git

  • sudo apt install python3-pip

Install wkhtmltopdf which is open source command line tools to render HTML to PDF.

  • cd /tmp
  • sudo wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb
  • sudo apt-get install -y xfonts-75dpi
  • sudo dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
  • cd

Install postgresql database :-

Odoo 14 software work with postgresql database so here we will configure Postgresql Database : -

  • sudo apt-get install postgresql postgresql-contrib
  • sudo pip3 install psycopg2-binary
  • sudo nano /etc/postgresql/12/main/pg_hba.conf

If this command dosent work to edit pg_hba configuration file → the version of postgresql is difference than 12 then try 10 ..

  • Add this line -> local all odoo md5
  • add odoo role for postgresql database configuration
  • systemctl restart postgresql
  • sudo su - postgres
     ​​​​createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt odoo
  • psql
  • alter user odoo with superuser;
  • alter role odoo PASSWORD 'odoo';
  • \q
  • exit

Now Install Odoo-14 community version source code :-

  • cd
    git clone https://www.github.com/odoo/odoo --depth 1 --branch 14.0 --single-branch
  • cd odoo
    sudo apt install python3-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev libtiff5-dev libjpeg8-dev libopenjp2-7-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev libharfbuzz-dev libfribidi-dev libxcb1-dev libpq-dev

Now inside odoo there is requirements.txt file this file has all python packages needed to run odoo 14 software : -

  • pip3 install -r requirements.txt

Now install npm and nodejs :-

  • sudo apt install nodejs
  • sudo apt install npm
  • sudo npm install -g rtlcss

Inside odoo direcory create openerp-server.conf for configuration file to connect odoo with postgresql using :

  • sudo nano openerp-server.conf

and put these infromation in it

    ;this is the password that allows database operations:
    ; admin_passwd = admin
    db_host = False
    db_port = False
    db_user = odoo
    db_password = odoo
    xml_rpc_port = 8069
    addons_path = /home/odoo-14/odoo/addons
  • openerp-server configuration file for odoo14

Kindly note that addons_path is changeable, depends on your path directory is , Finally you must get /odoo/addons (path).

Install Pycharm From Ubuntu software center (The Python IDE
for Professional Developers):-

install pycharm ce on ubuntu 20.04

  1. Open ubuntu software center
  2. search of pycharm
  3. install pycharm CE.

Now search for pycharm and run pycharm :-

    1. select I confirm, dont send
    2. start using pycharm -> open -> /home/django/odoo (project place)
    3. after opening -> click run -> click edit configuration -> choose Templates -> choose python

Add script path and parameters :-

  • write in script path /home/odoo-14/odoo/odoo-bin
  • Parameters -c /home/odoo-14/odoo/openerp-server.conf
  • Create configuration, Apply and close
  • open run again and save configuration with any name you want
  • Run


Open your browser and put

localhost:8069 On your browser

© 2020 PyOdoo.

TOPICS:  Odoo Technology-blog