You are on page 1of 3

Odoo Installatoin and Configuration: gurj-qri3-rcra

odoo15 - 2agy-tbkk-q3g9

Make your system Updated using these two commands


sudo apt-get update
sudo apt-get upgrade
Install python3:
sudo apt-get install python3.6
sudo apt install python3-pip

Install and Configure PostgresQL database : to access desktop mode


sudo apt install curl
curl -fsSL https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo gpg --dearmor -o
/etc/apt/trusted.gpg.d/pgadmin.gpg
sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs)
pgadmin4 main" > /etc/apt/sources.list.d/pgadmin4.list'
sudo apt update
sudo apt-get -y install postgresql
sudo apt install pgadmin4-desktop
To access web mode
sudo apt-get install postgresql
sudo su postgres
psql
ALTER USER postgres with PASSWORD 'postgres';
you can create new one;
CREATE USER odoo WITH CREATEDB LOGIN ENCRYPTED PASSWORD 'odoo';
sudo chmod 777 pg_hba.conf
Make change peer to md5 in pg_hba.conf file
its loacting in linux default etc/postgres/10/main/pg_hba.conf
sudo vi /etc/postgresql/14/main/pg_hba.conf

After restart Postgresql service


sudo systemctl restart postgresql.service

Now get Odoo source:


You can download or clone from git
git clone https://github.com/odoo/odoo.git
git clone https://www.github.com/odoo/odoo --depth 1 --branch 11.0 --single-branch .
Once you get odoo source then run requirements.txt file
pip3 install -r requirements.txt

Now install python missing library using pip3:


sudo pip3 install Babel decorator docutils ebaysdk feedparser gevent greenlet html2text Jinja2 lxml
Mako MarkupSafe mock num2words ofxparse passlib Pillow psutil psycogreen psycopg2 pydot
pyparsing PyPDF2 pyserial python-dateutil python-openid pytz pyusb PyYAML qrcode reportlab
requests vatnumber vobject Werkzeug xlsxwriter xlwt xlrd werkzeug==0.16.0 html2text
num2words

pip3 install PyPDF2


pip3 install passlib psutil
sudo apt-get install libpq-dev
sudo pip3 install psycopg2-binary
sudo pip3 install Jinja2==2.11.2
sudo apt-get install python3-openpyxl
pip3 install fuzzywuzzy pyfcm xmltodict
pip3 install zoomus

Install Python-sane library:


sudo apt-get update -y

sudo apt-get install -y python-sane

Need dendencies for Odoo Node.js and less


sudo apt install nodejs npm
sudo npm install -g less
sudo npm install -g less-plugin-clean-css
sudo npm install -g less@3.0.4 less-plugin-clean-css

install wkhtmltopdf:
sudo wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-
amd64.deb
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb

Now run odoo:


Open odoo.conf file and check
[options]
; This is the password that allows database operations:
admin_passwd = admin
db_host = False
db_port = False
db_user = db_username (Postgres DB name)
db_password = db_password (Postgres DB Password)
addons_path = give the odoo addons path locating in your local system
xmlrpc_port = 8079(This is optional, if you want to change the port. Odoo default redirecting port
is 8069)

In terminal run this code : python3 -odoo-bin – conf.file (path in your local system)

Open a new browser window and enter localhost:8069 in the address bar
If everything is working properly, you will redirect to Odoo's database creation page.
8069 is odoo’s default redirecting port

Odoo Configuration with Pycharm:


Install pycharm:
sudo snap install pycharm-community --classic
open with project
goto – run – edit configuration – add new configuration
select the script path (odoo-bin.py file)
set parameter like this (-c “your odoo.config file path”)
set python interpreter
click apply then ok
Now run the project in pycharm
Open browser and browse - localhost:8069/

REFERENCE:
https://www.cybrosys.com/blog/how-install-odoo11-on-ubuntu

You might also like