This brief tutorial shows students and new users how to install the latest version of Odoo ( 13 ) on Ubuntu 18.04 | 16.04 server..
Odoo (formerly OpenERP) is simple and intuitive suite of open-source, all-in-one ERP and CRM platform for businesses and individuals who want to manage their customers, invoices, orders, products, inventories and more… It also includes human resources and accounting components to help manage the business employees and finances….
Odoo is probably the best open source ERP / CRM management software to run your company…. used by thousands of businesses worldwide to manage their CRM and ERP processes…
Odoo is a good place to start when you’re looking for a enterprise resource planning and customer relationship management solutions… this open source ERP/CRM software is built on the LAMP / LEMP stack… and offer features that help you run your business and collaborate with your customers and employees…
Odoo is designed for ease of use to allow enterprises and business owners to collaborate and automate engaging experiences with customers through out the entire process…
To install Odoo, follow the steps below:
Step 1: Install Packages to Support Odoo
To perform a custom Odoo installation, you’ll have to install packages like Git, Node.js, Pip and others… Run the commands below to get them installed…
sudo apt update 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
Step 2: Create Odoo User
After installing the required packages above, you’ll also want to create an user account for Odoo.. Simply run the command below to get a user called odoo created…
The user home directory will be /opt/odoo
sudo useradd -m -d /opt/odoo -U -r -s /bin/bash odoo
Step 3: Install PostgreSQL
Odoo needs a PostgreSQL database to store its content…. To get PostgreSQL installed, simply run the commands below…
sudo apt install postgresql
After installing the database server, enable and start it by running the commands below…
sudo systemctl enable --now postgresql.service
Next, create a PostgreSQL database user for Odoo… Run the commands below to login and create a new user account called Odoo..
sudo su - postgres -c "createuser -s odoo"
Next, create a new database user account called odoo
sudo su - postgres -c "createdb odoo"
Next, grant all privileges to odoo user on the odoo database…
sudo -u postgres psql grant all privileges on database odoo to odoo;
Step 4: Install Wkhtmltopdf
In order to print PDF reports, you’ll need Wkhtmltopdf.. This package contains sets of open source tools render HTML into PDF and various image formats on Linux systems..
To install it, run the commands below:
cd /tmp wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.bionic_amd64.deb sudo apt install ./wkhtmltox_0.12.5-1.bionic_amd64.deb
Step 5: Install and Configure Odoo 13
Now that you have prepared your environment, continue below to get Odoo installed and configured… The first thing you’ll want to do is switch to the Odoo user account we created above by running the commands below:
sudo su - odoo
Then clone the current Odoo package ( version 13)
git clone https://www.github.com/odoo/odoo --depth 1 --branch 13.0 /opt/odoo/odoo13
When the done completes, change into Odoo directory and run the commands below to download and install requirements for Odoo…
cd /opt/odoo python3 -m venv odoo-venv source odoo-venv/bin/activate pip3 install wheel pip3 install -r odoo13/requirements.txt deactivate
After that create a new directory for Odoo custom addons..
When you’re done, create Odoo configuration file…:
sudo nano /etc/odoo13.conf
Then copy and paste the lines below into the file, save and exit…
[options] ; This is the password that allows database operations: admin_passwd = type_new_password_here db_host = False db_port = False db_user = odoo db_password = False addons_path = /opt/odoo/odoo13/addons,/opt/odoo/odoo13-custom-addons
Save your changes and exit
Step 6: Creating a Systemd Unit File
At this point, all should be set.. What you need to do now is to create a systemd unit file to control startup, restart and shutdown Odoo services…
sudo nano /etc/systemd/system/odoo13.service
Then copy and pastes the lines below into the file, save and exit
[Unit] Description=Odoo Requires=postgresql.service After=network.target postgresql.service [Service] Type=simple SyslogIdentifier=odoo PermissionsStartOnly=true User=odoo Group=odoo ExecStart=/opt/odoo/odoo-venv/bin/python3 /opt/odoo/odoo13/odoo-bin -c /etc/odoo13.conf StandardOutput=journal+console [Install] WantedBy=multi-user.target
When you’re done, reload systemd daemon and start up Odoo service…
sudo systemctl daemon-reload sudo systemctl enable --now odoo13
To check Odoo status and verify it’s installed and running, run the commands below:
sudo systemctl status odoo13
You should see similar messages as below:
● odoo13.service - Odoo Loaded: loaded (/etc/systemd/system/odoo13.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2019-10-23 10:49:40 CDT; 20s ago Main PID: 13762 (python3) Tasks: 4 (limit: 4674) CGroup: /system.slice/odoo13.service └─13762 /opt/odoo/odoo-venv/bin/python3 /opt/odoo/odoo13/odoo-bin -c /etc/odoo13.conf Oct 23 10:49:40 ubuntu1804 systemd: Started Odoo. Oct 23 10:49:41 ubuntu1804 odoo: 2019-10-23 15:49:41,623 13762 INFO ? odoo: Odoo version 13.0 Oct 23 10:49:41 ubuntu1804 odoo: 2019-10-23 15:49:41,624 13762 INFO ? odoo: Using configuration file at /etc/odoo13.conf Oct 23 10:49:41 ubuntu1804 odoo: 2019-10-23 15:49:41,624 13762 INFO ? odoo: addons paths: ['/opt/odoo/odoo13/odoo/addons', '/opt/odoo/.local/share/Odoo/addons/13.0', '/opt/odoo/odoo13/addons', '/op Oct 23 10:49:41 ubuntu1804 odoo: 2019-10-23 15:49:41,626 13762 INFO ? odoo: database: odoo@default:default Oct 23 10:49:41 ubuntu1804 odoo: 2019-10-23 15:49:41,824 13762 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf Oct 23 10:49:42 ubuntu1804 odoo: 2019-10-23 15:49:42,094 13762 INFO ? odoo.service.server: HTTP service (werkzeug) running on ubuntu1804:8069
That should do it if you follow and completed all the steps above…..
Step 7: Accessing Odoo 13 Portal
Now open your browser and browse to the server hostname or IP address followed by 8069
You should then see Odoo setup page… Use the master password you created in /etc/odoo13.conf file.. then type a new database name odoo13 and admin email address… then click Create database
After a few, you should see Odoo apps page to select your preferred apps to installed…
After that you should be all set!
You may also like the post below: