First phase on start coding in Odoo
| AMMAN-JORDAN

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

By

Odoo 11 Installation On Ubuntu18.04 with pycharm for developers

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

Ubuntu 18.04

To start coding on odoo erp system and create new modules

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

First Open Terminal on your ubuntu-18.04 server Start :

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

  • sudo apt install python3-pip
  • cd /tmp
  • 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
  • sudo apt install -f
  • cd
  • here is working with Postgresql Database
  • sudo apt-get install postgresql postgresql-contrib
  • 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-11 inside /home/django
  •  
    
    git clone https://www.github.com/odoo/odoo --depth 1 --branch 11.0 --single-branch
  • cd odoo
  • sudo nano requirements.txt
  • Kindly # (comment) some packages as below image (lxml ==3.7.1, lxml==4.2.3, lxml, pyldap==2.4.28)
  • requirements.txt file for odoo-11 python packages installation
  • after comment them
  • pip3 install -r requirements.txt
  • sudo apt install python3-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev
  • sudo apt-get install -y npm
  • sudo npm install -g less
  • Install Pycharm 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 odoo11 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 openerp-server.conf
  • pycharm edit configuration for script and parameters for odoo-11 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