Skip to content

Instantly share code, notes, and snippets.

@asadlive84
Last active January 23, 2021 21:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asadlive84/f1885edfc62c767a67807ca4b132cfee to your computer and use it in GitHub Desktop.
Save asadlive84/f1885edfc62c767a67807ca4b132cfee to your computer and use it in GitHub Desktop.
odoo Install
2 .sudo apt install git python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less postgresql
3. pip3 install -r requirements.txt
Step By Step Guide to Install Odoo12 with pycharm:
Open the terminal and execute below commands step-by-step:
1- Update apt source list:
sudo apt-get update
2- Install Updates:
sudo apt-get upgrade
3- install Python 3.5+:
python3 --version
sudo apt-get install python3.6-dev
or
sudo apt-get install python3.7-dev
4- Install git:
sudo apt-get install git
5- Install the postgres
sudo apt-get install postgresql
sudo apt-get install postgresql
sudo apt-get install python-psycopg2
python3 -m pip install Pillow
sudo apt-get install libpq-dev
sudo apt install libjpeg8-dev zlib1g-dev (for pillow)
6- Login to postgres
sudo su postgres
7- Create user odoo in postgres
createuser --createdb --username postgres --no-createrole --pwprompt odoo
8- Install wkhtml and place on correct place for Odoo
- sudo wget https://builds.wkhtmltopdf.org/0.12.1...
- sudo dpkg -i wkhtmltox_0.12.1.3-1~bionic_amd64.deb
- sudo apt-get install -f
- sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
- sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin
9- Install pycharm community:
sudo snap install pycharm-community --classic
10- Get odoo 12 source code
https://github.com/odoo/odoo/tree/12.0
git clone https://www.github.com/odoo/odoo --depth 1 --branch 12.0
11- Install Python dependencies
- sudo apt-get install python3-pip
- 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 six suds-jurko vatnumber vobject Werkzeug XlsxWriter xlwt xlrd Pypdf2
-pip3 install wheel
- pip3 install -r requirements.txt
- pip3 install PyPDF2
- pip3 install passlib
- pip3 install lxml
- pip3 install Jinja2
- pip3 install psycopg2-binary
- pip3 install python-dateutil
12- Install Less css via node js and npm
- sudo apt-get install curl
- sudo apt-get install npm
- sudo curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
- sudo apt install -y nodejs
- sudo apt-get install node-less
- sudo npm install -g less less-plugin-clean-css
- sudo python3 -m pip install libsass
-13 Create a file named 'odoo-server.conf'
[options]
; This is the password that allows database operations:
; admin_passwd = admin
db_host = localhost
db_name = False
db_port = 5432
db_user = odoo
db_password = odoo
xmlrpc_port = 8069
addons_path =
@asadlive84
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment