Tutorial on installing Odoo14 from source code on Ubuntu 18.04

Tutorial on installing Odoo14 from source code on Ubuntu 18.04

Background of this series

Odoo is an open source software built on Python, targeting enterprise applications in the fields of CRM, ERP, etc. Its goal is to compete with large software providers such as SAP and Oracle, but it meets all business needs of enterprise management through just one platform.

This series of articles focuses on Odoo version 14. From the perspectives of system installation, development environment configuration, code structure, major function upgrades, source code appreciation, and Anodoo's key extensions to Odoo, we will give you an advance introduction to this latest version, which will be released in 2020.

Overview

The installation of Odoo 14 is similar to the previous versions, which also includes installation files, source code, Docker and other forms. This article will install Odoo 14 on Ubuntu 18.04 through source code.

Postgresql database preparation

Install the database on the PostgreSQL official website or through the apt command.

https://www.postgresql.org/

https://www.postgresql.org/download/linux/ubuntu/

sudo apt update
sudo apt install postgresql postgresql-contrib

Since this is a development environment, use the current user and the createdb command of postgresql to add a database:

Created odoo14

Install from source

Since Anodoo is a source code-level extension based on Odoo, this article will first demonstrate the source code installation mode.

Download and prepare the Odoo 14 source files from http://nightly.odoo.com/, unzip the source files using tar or unzip command, and unzip them to ~/odoo14 directory. In this case, the directory is further renamed to ~/odoo14/odoo.

Creating a Virtual Environment

Since there are multiple Odoo or Python environments in the development environment, it is recommended to create a Python virtual environment. Create a virtual environment by running python3 -m venv python3 in the ~/odoo14 directory and run

source python3/bin/activate to start. Note that the command to exit the virtual environment after completion is deactivate

Install Dependencies

Install all dependencies with the following command

sudo apt install libpq-dev libldap2-dev libsasl2-dev libxslt1-devsudo apt install python3-setuptools python3-wheelsudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev python3-pypdf2pip3 install wheelpip3 install -r odoo/requirements.txtsudo apt install wkhtmltox_0.12.5-1.bionic_amd64.deb

Create a configuration file

Create the odoo.conf file in ~odoo14/ with the following content:

[options]db_host=Falsedb_port=Falsedb_name=odoo14db_user=odoodevdb_password=Falselogfile=/var/log/odoo/odoo14.logaddons_path=/home/lionger/odoo14/odoo/addons

Start Odoo 14

python3 odoo /odoo.py -c odoo.conf -i base

Note that the virtual environment is started by running python3 odoo/odoo.py -c odoo.conf -i base in the ~odoo14/ directory. The -i base option is used to initialize the database when the system is started for the first time. The second startup does not need it.

Preview of Odoo 14 features

After starting Odoo 14 through the above, no Module is installed by default for the first time, and the startup speed is very fast. After the startup is complete, visit http://localhost:8070 and click directly to enter the system for the first time, and you will see the following interface.

Conclusion

From downloading source code, creating a Python virtual environment, installing dependencies, creating configuration files to starting up, with just a few simple steps, you can quickly install the most powerful open source CRM and ERP in history and give it a try. It is recommended that you try it as soon as possible.

The above is the tutorial on how to install Odoo14 through source code on Ubuntu18.04 introduced by the editor. I hope it will be helpful to everyone!

You may also be interested in:
  • Solution for installing opencv 3.2.0 in Ubuntu 18.04
  • Install MySQL 5.7 on Ubuntu 18.04
  • Install Nvidia driver in Ubuntu 18 to solve black screen and adjust resolution problem

<<:  The MySQL version is lower than the one that does not support two timestamp type values.

>>:  How to use Node.js to determine whether a png image has transparent pixels

Recommend

Drawing fireworks effect of 2021 based on JS with source code download

This work uses the knowledge of front-end develop...

The solution of html2canvas that pictures cannot be captured normally

question First, let me talk about the problem I e...

Example of implementing the skeleton screen of WeChat applet

Table of contents What is a skeleton screen How t...

How to modify the forgotten password when installing MySQL on Mac

1. Install MySQL database on mac 1. Download MySQ...

How to set the text in the select drop-down menu to scroll left and right

I want to use the marquee tag to set the font scro...

How to hide the version number in Nginx

Nginx hides version number In a production enviro...

Mysql practical exercises simple library management system

Table of contents 1. Sorting function 2. Prepare ...

Uniapp implements DingTalk scan code login sample code

Since Uniapp does not have DingTalk authorization...

Text mode in IE! Introduction to the role of DOCTYPE

After solving the form auto-fill problem discussed...

How to use Docker to limit container resources

Problem Peeping In the server, assuming that the ...

How to introduce scss into react project

First download the dependencies yarn add sass-loa...

MYSQL stored procedures, that is, a summary of common logical knowledge points

Mysql stored procedure 1. Create stored procedure...