| AMMAN-JORDAN

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

By

Odoo 13 Installation On Ubuntu 20.04 with pycharm for developers

how to install odoo 13 on ubuntu 20.04 with pycharm
Install Odoo 13 on ubuntu 20.04 with pycharm for odoo developers
By

How to Install Odoo 13 on Ubuntu 20.04 : -

To start coding on odoo erp system and create new modules

Follow these steps to install odoo 13 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
  • cd /tmp

install wkhtmltopdf :- is open source command line tools to render HTML to PDF .

  • 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 for odoo 13 software :-

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

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

  • 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 13 community version (source code) :

  • cd
  •  
    
    git clone https://www.github.com/odoo/odoo --depth 1 --branch 13.0 --single-branch
  • cd odoo
  •  
    
    sudo apt install python3-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev

Now we want to install requirements.txt : its the python packages needed to run Odoo 13

using this command we want to modify requirements.txt first:-

  • sudo nano requirements.txt
  • Comment pillow and psycopg2 inside requirements.txt :-
#Pillow==5.4.1 ; python_version < '3.7' or sys_platform != 'win32'
#Pillow==6.1.0 ; sys_platform == 'win32' and python_version >= '3.7'
#psycopg2==2.7.7; sys_platform != 'win32' and python_version < '3.8'
#psycopg2==2.8.3; sys_platform == 'win32' or python_version >= '3.8'
 
  • Or like the below image :

modify requirements python packages for odoo 13

  • Now install requirements using the command :-
  • pip3 install -r requirements.txt
  • python3 -m pip install —upgrade pip

    python3 -m pip install —upgrade Pillow

install npm :-

  • sudo apt-get install -y npm
  • sudo npm install -g less
  • sudo npm install -g rtlcss

Install Pycharm From Ubuntu software center :-

install pycharm ce on ubuntu 20.04

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

Inside odoo direcory create openerp-server.conf for parameters configuration using :

  • sudo nano openerp-server.conf
  • and put these infromation in it
  •  
    [options]
    ;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/django/odoo/addons
     
  • openerp-server configuration file for odoo13 in pycharm

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

  • 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/django/odoo/odoo-bin
  • Parameters -c /home/django/odoo/openerp-server.conf

  • Create configuration, Apply and close
  • open run again and save configuration with any name you want
  • Run

Done

Open your browser and put

localhost:8069 On your browser

© 2020 PyOdoo.

TOPICS:  Odoo