Introduction Odoo14 1: Ubuntu18.04 by source installation Odoo14

This series Background

 

Odoo is a Python-based language to build open source software for enterprise applications, CRM, ERP and other fields, with the goal of the standard SAP, Oracle and other large software vendors, but to meet the needs of all business management business by just one platform.

This series of articles for the version Odoo 14, from system installation, configuration development environment, code structure, the main feature upgrades, source appreciation, Anodoo critical extensions of Odoo of perspectives, to tell you in advance that the upcoming release of the latest version in 2020.

 

本篇 Overview

       Installation and historical versions Odoo14 almost, also includes installation files, source code, Docker and other means, the paper by source mounted Odoo 14 on Ubuntu 18.04.

 

Postgresql database ready

 

In PostgreSQL's official website, or by installing the database apt command.

https://www.postgresql.org/

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

 

sudo apt update

sudo apt install postgresql postgresql-contrib

 

Because it is the development environment, using the current user, and the use of postgresql createdb command to increase the database:

Created odoo14

 

By Source Installation

 

Since Anodoo, source-level extensions on Odoo, so this demonstrates the priority source installation mode.

In http://nightly.odoo.com/  download and prepare Odoo14 source files, the use of the tar, or unzip command source files, decompress ~ / odoo14 directory. This case further renamed directory as ~ / odoo14 / odoo is shaped.

 

 

Create a virtual environment

Because the development environment, there are multiple odoo or python environment, it is recommended to create a virtual Python environment. By creating a virtual environment running under ~ / odoo14 directory python3 -m venv python3, and by

source python3 / bin / activate start, pay attention to complete the command to exit the virtual environment is deactivate after

 

Installation depends

 

Install all dependencies with the following command

l  sudo apt install libpq-dev libldap2-dev libsasl2-dev libxslt1-dev

l  sudo apt install python3-setuptools python3-wheel

l  sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev python3-pypdf2

l  pip3 install wheel

l  pip3 install -r odoo/requirements.txt

l  sudo apt install wkhtmltox_0.12.5-1.bionic_amd64.deb

 

Create a profile

 

Creating odoo.conf file in ~ odoo14 / under, reads as follows:

u  [options]

u  db_host=False

u  db_port=False

u  db_name=odoo14

u  db_user=odoodev

u  db_password=False

the logfile = / var / log / odoo / odoo14.log

u  addons_path=/home/lionger/odoo14/odoo/addons

 

启动 Odoo 14

 

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

 

Note that, on the basis of the virtual environment launched by running at ~ odoo14 / directory python3 odoo /odoo.py -c odoo.conf -i base. -I base which is when you first start to initialize the database. Second, it can not start.

 

 

Preview function Odoo 14

 

Start by more than 14 after the first time, the default is not installed good Odoo Module, start fast. After startup, by accessing http: // localhost: 8070 visit, the first direct click into the system, you can see the following interface.

 

 

 

 

Epilogue

 

Download from source code, create a virtual Python environment, install dependencies, create a profile to start, a few simple steps, you can quickly install the strongest in the history of open source CRM, ERP and a trial, I suggest that you try as soon as possible.

Guess you like

Origin www.cnblogs.com/mushenniannian/p/12305463.html