0% found this document useful (0 votes)
47 views2 pages

Odoo - Installation

Uploaded by

Andi Rahman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views2 pages

Odoo - Installation

Uploaded by

Andi Rahman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Installation Odoo Native

A. Prepare Installation:
1. Sudo apt-get update
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 libjpeg8-dev libpng-dev libfreetype6-dev
libpq-dev

B. Create User Odoo


1. sudo useradd -m -d /opt/odoo-version -U -r -s /bin/bash odoo-version
2. sudo su - odoo-version
3. Exit

C. Installation
1. sudo apt install postgresql
2. sudo su - postgres -c "createuser -s odoo-version"
3. wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-
1.bionic_amd64.deb
4. sudo apt install ./wkhtmltox_0.12.5-1.bionic_amd64.deb
5. sudo su - odoo-version

D. Installation Odoo
1.git clone https://www.github.com/odoo/odoo --depth 1 --branch 13.0 /opt/odoo-user/odoo
3. python3 -m venv odoo-venv
4. source odoo-venv/bin/activate
5. pip3 install wheel
6. pip3 install -r odoo/requirements.txt
7. deactivate
8.mkdir /opt/odoo-version/odoo-custom-addons
9.exit
10.sudo nano /etc/odoo-version.conf
[options]
; This is the password that allows database operations:
addons_path = /opt/odoo-user/odoo/addons, /opt/odoo-user/odoo-custom-addons
admin_passwd = clean10admin
#db_maxconn = 64
db_password = False
db_user = odoo12
http_port = 8015
limit_memory_hard = 1677721600
limit_memory_soft = 629145600
limit_request = 8192
limit_time_cpu = 6000
limit_time_real = 1200
unaccent = True
#master_password = admin
#max_cron_threads = 2
#proxy_mode = False
#server_wide_modules = base,web
#workers = 0
Systemctl
1. sudo nano /etc/systemd/system/odoo-version.service
[Unit]
Description=Odoo13
Requires=postgresql.service
After=network.target postgresql.service

[Service]
Type=simple
SyslogIdentifier=odoo13
PermissionsStartOnly=true
User=odoo13
Group=odoo13
ExecStart=/opt/odoo-user/odoo-venv/bin/python3 /opt/odoo-user/odoo/odoo-bin -c
/etc/odoo12.conf
StandardOutput=journal+console

[Install]
WantedBy=multi-user.target
2. sudo systemctl daemon-reload
3.sudo systemctl enable --now odoo-user
4. sudo systemctl status odoo-version.service

Run Manually
1. sudo su - odoo-version
2. cd odoo
3. python3 odoo-bin --addons-path=addons,../enterprise,/home/andi/Workspace/custom --
xmlrpc-port=8013

*notes
1. Enterprise Option dan path custom module sudah ada module customize
2. port yang akan dipanggil pada localhost:port

You might also like