| AMMAN-JORDAN

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

By

how to install Odoo 13 On Ubuntu 18.04 with pycharm for developers

how to install odoo 13 on ubuntu 18.04 with pycharm source code
how to install Odoo 13 on ubuntu 18.04 with pycharm for odoo developers
By

To install odoo 13 on ubuntu 18.04 with paycharm :-

odoo is an open source software for companies of any size and start coding on odoo 13 software and create new modules

Follow these steps to install odoo 13 on ubuntu 18.04 with pycharm as source code :

First Open Terminal on your ubuntu-18.04 computer and Start :

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

  • sudo apt install python3-pip
  • cd /tmp

Instal wkhtmltopdf which 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 dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
  • cd

install Postgresql Database :-

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

  • 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

Install Odoo 13 community version :-

  • 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
  • pip3 install -r requirements.txt

install npm :-

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

Install Pycharm IDE and its decencies :-

  • sudo apt-get install -y openjdk-8-jre-headless
  • sudo add-apt-repository -y ppa:ubuntu-desktop/ubuntu-make
  • sudo apt-get update
  • sudo apt-get install -y ubuntu-make
  • umake ide pycharm
  • Inside odoo direcory create
  • sudo nano openerp-server.conf
  • and put these infromation
  •  
    [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
  • Now run pycharm applicaton
  • The defualt path installation is : cd /home/django/.local/share/umake/ide/pycharm/bin
     
  • ./pycharm.sh TO Run pycharm
  • select do not import settings -> accept -> don't send

  • start using pycharm -> open -> /home/django/odoo (project place)
  • after opening -> click run ->edit configuration-> Templates -> python

  • write in script path /home/django/odoo/odoo-bin
  • Parameters -c /home/django/odoo/openerp-server.conf
  • pycharm edit configuration for script and parameters for odoo-13 on ubuntu source code

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

Done


2020-02-23 19:58:08,634 2610 INFO ? odoo.service.server: HTTP service (werkzeug) running on ubuntu:8069

Open your browser and put

localhost:8069 On your browser

© 2020 PyOdoo

TOPICS:  Odoo