In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how Ubuntu18.04 installs Odoo14 through the source code. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
Background introduction to this series
Odoo is an open source software based on Python language, which is oriented to CRM,ERP and other fields of enterprise applications. Its goal is to target large software providers such as SAP,Oracle, but it meets all the business needs of enterprise management through only one platform.
This series of articles aims at Odoo version 14, from the aspects of system installation, development environment configuration, code structure, major function upgrades, source code appreciation, Anodoo's key extensions to Odoo, etc., to introduce in advance the latest version to be released in 2020.
An overview of this article
The installation of Odoo14 is similar to the historical version, and it also includes installation files, source code, Docker and other forms. In this paper, Odoo14 is installed on Ubuntu 18.04 by 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 updatesudo apt install postgresql postgresql-contrib
Because it is a development environment, use the current user, and use the createdb command of postgresql to increase the database:
Created odoo14
Install through source code
Because Anodoo extends at the source level on Odoo, this article gives priority to demonstrating the source installation mode.
Download and prepare the Odoo14 source file in http://nightly.odoo.com/, use the tar, or unzip command to extract the source file, and extract it to the ~ / odoo14 directory. In this case, it is further renamed to a directory such as ~ / odoo14/odoo.
Create a virtual environment
Since there are multiple odoo or python environments in the development environment, it is recommended to create a virtual environment for Python. Create a virtual environment by running python3-m venv python3 in the ~ / odoo14 directory, and through the
Source python3/bin/activate starts. Note that the command to exit the virtual environment after completion is deactivate.
Installation dependency
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 profile
Create an odoo.conf file under ~ odoo14/, as follows:
[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
Notice that after launching the virtual environment, run python3 odoo / odoo.py-c odoo.conf-I base in the ~ odoo14/ directory. Where-I base is used to initialize the database when it is first started. You don't have to start the second time.
Preview the features of Odoo 14
After starting Odoo 14 above, Module is not installed by default for the first time, and the startup speed is very fast. After the startup is completed, you can visit http://localhost:8070 and click directly to enter the system for the first time, and you will see the following interface.
On "Ubuntu18.04 how to install Odoo14 through the source code" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 217
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.