Step 1

Update apt source listsudo apt-get update

Step 2

Install Updatessudo apt-get upgrade

Step 3

Install Python Dependencies for Odoosudo apt-get install python-dateutil python-docutils python-feedparser python-jinja2 python-ldap python-libxslt1 python-lxml python-mako python-mock python-openid python-psycopg2 python-psutil python-pybabel python-pychart python-pydot python-pyparsing python-reportlab python-simplejson python-tz python-unittest2 python-vatnumber python-vobject python-webdav python-werkzeug python-xlwt python-yaml python-zsi poppler-utils python-pip python-pypdf python-passlib python-decorator gcc python-dev mc bzr python-setuptools python-markupsafe python-reportlab-accel python-zsi python-yaml python-argparse python-openssl python-egenix-mxdatetime python-usb python-serial lptools make python-pydot python-psutil python-paramiko poppler-utils python-pdftools antiword python-requests python-xlsxwriter python-suds python-psycogreen python-ofxparse python-gevent

Step 4

Odoo Web Dependenciessudo apt-get install -y npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo npm install -g less less-plugin-clean-css

Step 5

Install PostgreSQL sudo apt-get install python-software-properties
sudo vim /etc/apt/sources.list.d/pgdg.list
add a line for the repository
deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.6

Step 6

Create Database user for Odoosudo su postgres
cd
createuser -s odoo
createuser -s ubuntu_user_name
exit

Step 7

Create Odoo user and groupsudo adduser --system --home=/opt/odoo --group odoo

Step 8

Install Gdatacd /opt/odoo
Go to the link “https://pypi.python.org/pypi/gdata” and download the gdata-2.0.18 and transfer the file to server.
Otherwise through terminal follow the below step:
sudo wget https://pypi.python.org/packages/a8/70/bd554151443fe9e89d9a934a7891aaffc63b9cb5c7d608972919a002c03c/gdata-2.0.18.tar.gz
sudo tar zxvf gdata-2.0.18.tar.gz
sudo chown -R odoo: gdata-2.0.18
sudo -s
cd gdata-2.0.18/
python setup.py install
exit

Step 9

Odoo 10 Download from GitHubGet lastest Odoo 10 from github repository. Download the Zip file from URL : “https://github.com/odoo/odoo/tree/10.0″ . Transfer the same file to /opt/odoo directory on server through ftp. Otherwise Follow the below Step
cd /opt/odoo
sudo wget https://github.com/odoo/odoo/archive/10.0.zip
sudo unzip 10.0.zip
sudo chown -R odoo: odoo-10.0
Or Git Clone Odoo
git clone --depth=1 --branch=10.0 https://github.com/odoo/odoo.git /opt/odoo/odoo
sudo mv odoo/ odoo-10.0/
sudo chown -R odoo: odoo-10.0

Step 10

Create Odoo Log Filesudo mkdir /var/log/odoo
sudo chown -R odoo:root /var/log/odoo

Step 11

Edit Odoo configuration filesudo cp /opt/odoo/odoo-10.0/debian/odoo.conf /etc/odoo.conf
sudo chown odoo: /etc/odoo.conf
sudo vim /etc/odoo.conf
#Copy and paste below content in config file , write correct addons paths
[options] ; This is the password that allows database operations:
; admin_passwd = PASSWORD
db_host = False
db_port = False
db_user = odoo
db_password = False
addons_path = /opt/odoo/odoo-10.0/addons
;Log Settings
logfile = /var/log/odoo/odoo.log
log_level = error

Step 12

WKHTMLTOPDF for OdooFollow the steps mention in below link and then return back for the next step.
https://www.getopenerp.com/wkhtmltopdf-for-odoo8/

Step 13

Now Start Odoo Servercd /opt/odoo/odoo-10.0
./odoo-bin

Step 14

Go to web browser to access Odoo 10http://localhost:8069

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *