Installing Odoo CRM/ERP on CentOS 8 - CentLinux

Latest

Sunday, 8 November 2020

Installing Odoo CRM/ERP on CentOS 8

installing-odoo-crm-erp-on-centos-8

Odoo is an all-in-one suite of business management software tools. In this article, you will learn how to install Odoo CRM/ERP on CentOS 8.

 

Table of Contents:

     

    What is Odoo? :

    Odoo is an all-in-one suite of business management software tools including CRM, e-commerce, billing, accounting, manufacturing, warehouse, project management, and inventory management to name a few.

    Odoo project was started in Feb 2005 and it was initially named Tiny ERP. Later in April 2009 the project name was changed to OpenERP and finally it becomes Odoo (On-Demand Open Object) in Sep 2014.

    Odoo is available in Community and Enterprise Editions. The Community version is a free and licensed under the GNU LGPLv3. Whereas the Odoo Enterprise Edition has a licensing cost depends upon the modules you want to use.

    You can see the complete Odoo pricing on their official website.

    Flectra is a strong competitor and odoo alternative. You should read our previous article about installation of Flectra CRM on CentOS 8.

     

    Environment Specification:

    We have provisioned a minimal installed CentOS 8 virtual machine with following specifications.

    • CPU - 3.4 Ghz (2 cores)
    • Memory - 2 GB
    • Storage - 20 GB
    • Operating System - CentOS 8.2
    • Hostname – odoo-01.centlinux.com
    • IP Address - 192.168.116.230 /24

     

    Updating Software Packages in Linux Server:

    Connect with odoo-01.centlinux.com as root user by using a SSH client.

    It is a best practice to update your existing software packages before installing anything new on your Linux server.

    Therefore, execute dnf command to update software packages in your Linux server.

    [root@odoo-01 ~]# dnf update -y Last metadata expiration check: 0:00:20 ago on Fri 06 Nov 2020 09:56:11 PM PKT. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: kernel x86_64 4.18.0-193.28.1.el8_2 BaseOS 2.8 M kernel-core x86_64 4.18.0-193.28.1.el8_2 BaseOS 28 M kernel-modules x86_64 4.18.0-193.28.1.el8_2 BaseOS 23 M Upgrading: kernel-tools x86_64 4.18.0-193.28.1.el8_2 BaseOS 3.0 M kernel-tools-libs x86_64 4.18.0-193.28.1.el8_2 BaseOS 2.8 M nftables x86_64 1:0.9.3-12.el8_2.1 BaseOS 311 k python3-nftables x86_64 1:0.9.3-12.el8_2.1 BaseOS 25 k python3-perf x86_64 4.18.0-193.28.1.el8_2 BaseOS 2.9 M selinux-policy noarch 3.14.3-41.el8_2.8 BaseOS 615 k selinux-policy-targeted noarch 3.14.3-41.el8_2.8 BaseOS 15 M tzdata noarch 2020d-1.el8 BaseOS 471 k Removing: kernel x86_64 4.18.0-193.6.3.el8_2 @BaseOS 0 kernel-core x86_64 4.18.0-193.6.3.el8_2 @BaseOS 60 M kernel-modules x86_64 4.18.0-193.6.3.el8_2 @BaseOS 20 M Transaction Summary ================================================================================ Install 3 Packages Upgrade 8 Packages Remove 3 Packages Total download size: 79 M Downloading Packages: (1/11): kernel-4.18.0-193.28.1.el8_2.x86_64.rpm 83 kB/s | 2.8 MB 00:34 (2/11): kernel-tools-4.18.0-193.28.1.el8_2.x86_ 103 kB/s | 3.0 MB 00:29 (3/11): kernel-tools-libs-4.18.0-193.28.1.el8_2 132 kB/s | 2.8 MB 00:21 (4/11): nftables-0.9.3-12.el8_2.1.x86_64.rpm 96 kB/s | 311 kB 00:03 (5/11): python3-nftables-0.9.3-12.el8_2.1.x86_6 119 kB/s | 25 kB 00:00 (6/11): python3-perf-4.18.0-193.28.1.el8_2.x86_ 44 kB/s | 2.9 MB 01:07 (7/11): selinux-policy-3.14.3-41.el8_2.8.noarch 33 kB/s | 615 kB 00:18 (8/11): kernel-modules-4.18.0-193.28.1.el8_2.x8 61 kB/s | 23 MB 06:35 (9/11): tzdata-2020d-1.el8.noarch.rpm 43 kB/s | 471 kB 00:11 (10/11): kernel-core-4.18.0-193.28.1.el8_2.x86_ 60 kB/s | 28 MB 07:56 (11/11): selinux-policy-targeted-3.14.3-41.el8_ 48 kB/s | 15 MB 05:20 -------------------------------------------------------------------------------- Total 163 kB/s | 79 MB 08:16 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: kernel-core-4.18.0-193.28.1.el8_2.x86_64 1/1 Installing : kernel-core-4.18.0-193.28.1.el8_2.x86_64 1/22 Running scriptlet: kernel-core-4.18.0-193.28.1.el8_2.x86_64 1/22 Installing : kernel-modules-4.18.0-193.28.1.el8_2.x86_64 2/22 Running scriptlet: kernel-modules-4.18.0-193.28.1.el8_2.x86_64 2/22 Upgrading : selinux-policy-3.14.3-41.el8_2.8.noarch 3/22 Running scriptlet: selinux-policy-3.14.3-41.el8_2.8.noarch 3/22 Upgrading : nftables-1:0.9.3-12.el8_2.1.x86_64 4/22 Running scriptlet: nftables-1:0.9.3-12.el8_2.1.x86_64 4/22 Upgrading : kernel-tools-libs-4.18.0-193.28.1.el8_2.x86_64 5/22 Running scriptlet: kernel-tools-libs-4.18.0-193.28.1.el8_2.x86_64 5/22 Upgrading : kernel-tools-4.18.0-193.28.1.el8_2.x86_64 6/22 Upgrading : python3-nftables-1:0.9.3-12.el8_2.1.x86_64 7/22 Running scriptlet: selinux-policy-targeted-3.14.3-41.el8_2.8.noarch 8/22 Upgrading : selinux-policy-targeted-3.14.3-41.el8_2.8.noarch 8/22 Running scriptlet: selinux-policy-targeted-3.14.3-41.el8_2.8.noarch 8/22 Installing : kernel-4.18.0-193.28.1.el8_2.x86_64 9/22 Upgrading : tzdata-2020d-1.el8.noarch 10/22 Upgrading : python3-perf-4.18.0-193.28.1.el8_2.x86_64 11/22 Erasing : kernel-4.18.0-193.6.3.el8_2.x86_64 12/22 Running scriptlet: kernel-4.18.0-193.6.3.el8_2.x86_64 12/22 Cleanup : selinux-policy-targeted-3.14.3-41.el8_2.6.noarch 13/22 Running scriptlet: selinux-policy-targeted-3.14.3-41.el8_2.6.noarch 13/22 Cleanup : kernel-tools-4.18.0-193.19.1.el8_2.x86_64 14/22 Cleanup : python3-nftables-1:0.9.3-12.el8.x86_64 15/22 Cleanup : selinux-policy-3.14.3-41.el8_2.6.noarch 16/22 Running scriptlet: selinux-policy-3.14.3-41.el8_2.6.noarch 16/22 Cleanup : tzdata-2020a-1.el8.noarch 17/22 Erasing : kernel-modules-4.18.0-193.6.3.el8_2.x86_64 18/22 Running scriptlet: kernel-modules-4.18.0-193.6.3.el8_2.x86_64 18/22 Running scriptlet: kernel-core-4.18.0-193.6.3.el8_2.x86_64 19/22 Erasing : kernel-core-4.18.0-193.6.3.el8_2.x86_64 19/22 Running scriptlet: kernel-core-4.18.0-193.6.3.el8_2.x86_64 19/22 Running scriptlet: nftables-1:0.9.3-12.el8.x86_64 20/22 Cleanup : nftables-1:0.9.3-12.el8.x86_64 20/22 Running scriptlet: nftables-1:0.9.3-12.el8.x86_64 20/22 Cleanup : kernel-tools-libs-4.18.0-193.19.1.el8_2.x86_64 21/22 Running scriptlet: kernel-tools-libs-4.18.0-193.19.1.el8_2.x86_64 21/22 Cleanup : python3-perf-4.18.0-193.19.1.el8_2.x86_64 22/22 Running scriptlet: kernel-core-4.18.0-193.28.1.el8_2.x86_64 22/22 Running scriptlet: python3-perf-4.18.0-193.19.1.el8_2.x86_64 22/22 Verifying : kernel-4.18.0-193.28.1.el8_2.x86_64 1/22 Verifying : kernel-core-4.18.0-193.28.1.el8_2.x86_64 2/22 Verifying : kernel-modules-4.18.0-193.28.1.el8_2.x86_64 3/22 Verifying : kernel-tools-4.18.0-193.28.1.el8_2.x86_64 4/22 Verifying : kernel-tools-4.18.0-193.19.1.el8_2.x86_64 5/22 Verifying : kernel-tools-libs-4.18.0-193.28.1.el8_2.x86_64 6/22 Verifying : kernel-tools-libs-4.18.0-193.19.1.el8_2.x86_64 7/22 Verifying : nftables-1:0.9.3-12.el8_2.1.x86_64 8/22 Verifying : nftables-1:0.9.3-12.el8.x86_64 9/22 Verifying : python3-nftables-1:0.9.3-12.el8_2.1.x86_64 10/22 Verifying : python3-nftables-1:0.9.3-12.el8.x86_64 11/22 Verifying : python3-perf-4.18.0-193.28.1.el8_2.x86_64 12/22 Verifying : python3-perf-4.18.0-193.19.1.el8_2.x86_64 13/22 Verifying : selinux-policy-3.14.3-41.el8_2.8.noarch 14/22 Verifying : selinux-policy-3.14.3-41.el8_2.6.noarch 15/22 Verifying : selinux-policy-targeted-3.14.3-41.el8_2.8.noarch 16/22 Verifying : selinux-policy-targeted-3.14.3-41.el8_2.6.noarch 17/22 Verifying : tzdata-2020d-1.el8.noarch 18/22 Verifying : tzdata-2020a-1.el8.noarch 19/22 Verifying : kernel-4.18.0-193.6.3.el8_2.x86_64 20/22 Verifying : kernel-core-4.18.0-193.6.3.el8_2.x86_64 21/22 Verifying : kernel-modules-4.18.0-193.6.3.el8_2.x86_64 22/22 Upgraded: kernel-tools-4.18.0-193.28.1.el8_2.x86_64 kernel-tools-libs-4.18.0-193.28.1.el8_2.x86_64 nftables-1:0.9.3-12.el8_2.1.x86_64 python3-nftables-1:0.9.3-12.el8_2.1.x86_64 python3-perf-4.18.0-193.28.1.el8_2.x86_64 selinux-policy-3.14.3-41.el8_2.8.noarch selinux-policy-targeted-3.14.3-41.el8_2.8.noarch tzdata-2020d-1.el8.noarch Installed: kernel-4.18.0-193.28.1.el8_2.x86_64 kernel-core-4.18.0-193.28.1.el8_2.x86_64 kernel-modules-4.18.0-193.28.1.el8_2.x86_64 Removed: kernel-4.18.0-193.6.3.el8_2.x86_64 kernel-core-4.18.0-193.6.3.el8_2.x86_64 kernel-modules-4.18.0-193.6.3.el8_2.x86_64 Complete!

    Verify the Linux distribution and Kernel version of the operatring system that we are using in this installation guide.

    [root@odoo-01 ~]# uname -r 4.18.0-193.19.1.el8_2.x86_64 [root@odoo-01 ~]# cat /etc/redhat-release CentOS Linux release 8.2.2004 (Core)

     

    Installing EPEL Yum Repository on CentOS 8:

    Some of the prerequisite packages are provided by EPEL (Extra Packages for Enterprise Linux) yum repository. Therefore, we are installing it before installing anything else.

    [root@odoo-01 ~]# dnf install -y epel-release Last metadata expiration check: 0:29:09 ago on Fri 06 Nov 2020 10:02:13 PM PKT. Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: epel-release noarch 8-8.el8 extras 23 k Transaction Summary ================================================================================ Install 1 Package Total download size: 23 k Installed size: 32 k Downloading Packages: epel-release-8-8.el8.noarch.rpm 17 kB/s | 23 kB 00:01 -------------------------------------------------------------------------------- Total 11 kB/s | 23 kB 00:02 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : epel-release-8-8.el8.noarch 1/1 Running scriptlet: epel-release-8-8.el8.noarch 1/1 Verifying : epel-release-8-8.el8.noarch 1/1 Installed: epel-release-8-8.el8.noarch Complete!

    Build cache for newly installed yum repository.

    [root@odoo-01 ~]# dnf makecache CentOS-8 - AppStream 2.5 kB/s | 4.3 kB 00:01 CentOS-8 - Base 2.1 kB/s | 3.9 kB 00:01 CentOS-8 - Extras 1.0 kB/s | 1.5 kB 00:01 Extra Packages for Enterprise Linux Modular 8 - 21 kB/s | 97 kB 00:04 Extra Packages for Enterprise Linux 8 - x86_64 363 kB/s | 8.3 MB 00:23 Metadata cache created.

     

    Installing Python Programming Language on CentOS 8:

    Odoo is written in Python programming language. Therefore, you have to add Python language support in our Linux server.

    Python software packages can be installed from standard yum repositories by using dnf command.

    [root@odoo-01 ~]# dnf install -y python36 python36-devel Last metadata expiration check: 0:14:44 ago on Fri 06 Nov 2020 10:02:13 PM PKT. Dependencies resolved. ================================================================================ Package Arch Version Repo Size ================================================================================ Installing: python36 x86_64 3.6.8-2.module_el8.1.0+245+c39af44f AppStream 19 k python36-devel x86_64 3.6.8-2.module_el8.1.0+245+c39af44f AppStream 16 k Installing dependencies: platform-python-devel x86_64 3.6.8-23.el8 AppStream 246 k python-rpm-macros noarch 3-38.el8 AppStream 14 k python-srpm-macros noarch 3-38.el8 AppStream 14 k python3-pip noarch 9.0.3-16.el8 AppStream 19 k python3-rpm-generators noarch 5-6.el8 AppStream 24 k python3-rpm-macros noarch 3-38.el8 AppStream 13 k python3-setuptools noarch 39.2.0-5.el8 BaseOS 162 k Enabling module streams: python36 3.6 Transaction Summary ================================================================================ Install 9 Packages Total download size: 529 k Installed size: 1.2 M Downloading Packages: (1/9): python-rpm-macros-3-38.el8.noarch.rpm 7.0 kB/s | 14 kB 00:02 (2/9): python3-pip-9.0.3-16.el8.noarch.rpm 10 kB/s | 19 kB 00:01 (3/9): python3-rpm-generators-5-6.el8.noarch.rp 29 kB/s | 24 kB 00:00 (4/9): python3-rpm-macros-3-38.el8.noarch.rpm 16 kB/s | 13 kB 00:00 (5/9): python36-3.6.8-2.module_el8.1.0+245+c39a 34 kB/s | 19 kB 00:00 (6/9): python-srpm-macros-3-38.el8.noarch.rpm 2.2 kB/s | 14 kB 00:06 (7/9): python36-devel-3.6.8-2.module_el8.1.0+24 37 kB/s | 16 kB 00:00 (8/9): platform-python-devel-3.6.8-23.el8.x86_6 19 kB/s | 246 kB 00:13 (9/9): python3-setuptools-39.2.0-5.el8.noarch.r 22 kB/s | 162 kB 00:07 -------------------------------------------------------------------------------- Total 35 kB/s | 529 kB 00:15 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : python3-setuptools-39.2.0-5.el8.noarch 1/9 Installing : python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64 2/9 Running scriptlet: python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64 2/9 Installing : python3-pip-9.0.3-16.el8.noarch 3/9 Installing : python3-rpm-macros-3-38.el8.noarch 4/9 Installing : python3-rpm-generators-5-6.el8.noarch 5/9 Installing : python-srpm-macros-3-38.el8.noarch 6/9 Installing : python-rpm-macros-3-38.el8.noarch 7/9 Installing : platform-python-devel-3.6.8-23.el8.x86_64 8/9 Installing : python36-devel-3.6.8-2.module_el8.1.0+245+c39af44f.x 9/9 Running scriptlet: python36-devel-3.6.8-2.module_el8.1.0+245+c39af44f.x 9/9 Verifying : platform-python-devel-3.6.8-23.el8.x86_64 1/9 Verifying : python-rpm-macros-3-38.el8.noarch 2/9 Verifying : python-srpm-macros-3-38.el8.noarch 3/9 Verifying : python3-pip-9.0.3-16.el8.noarch 4/9 Verifying : python3-rpm-generators-5-6.el8.noarch 5/9 Verifying : python3-rpm-macros-3-38.el8.noarch 6/9 Verifying : python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64 7/9 Verifying : python36-devel-3.6.8-2.module_el8.1.0+245+c39af44f.x 8/9 Verifying : python3-setuptools-39.2.0-5.el8.noarch 9/9 Installed: platform-python-devel-3.6.8-23.el8.x86_64 python-rpm-macros-3-38.el8.noarch python-srpm-macros-3-38.el8.noarch python3-pip-9.0.3-16.el8.noarch python3-rpm-generators-5-6.el8.noarch python3-rpm-macros-3-38.el8.noarch python3-setuptools-39.2.0-5.el8.noarch python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64 python36-devel-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64 Complete!

     

    Installing Odoo Prerequisite Packages in CentOS 8:

    Odoo CRM/ERP requires following software packages. These packages are available in standard yum repositories and can be installed by using dnf command.

    [root@odoo-01 ~]# dnf install -y git gcc redhat-rpm-config \ > libxslt-devel bzip2-devel openldap-devel \ > libjpeg-devel freetype-devel ... Installed: annobin-8.90-1.el8.0.1.x86_64 binutils-2.30-73.el8.x86_64 bzip2-devel-1.0.6-26.el8.x86_64 cmake-filesystem-3.11.4-7.el8.x86_64 cpp-8.3.1-5.el8.0.2.x86_64 cyrus-sasl-2.1.27-1.el8.x86_64 cyrus-sasl-devel-2.1.27-1.el8.x86_64 dwz-0.12-9.el8.x86_64 efi-srpm-macros-3-2.el8.noarch emacs-filesystem-1:26.1-5.el8.noarch freetype-devel-2.9.1-4.el8.x86_64 gcc-8.3.1-5.el8.0.2.x86_64 ghc-srpm-macros-1.4.2-7.el8.noarch git-2.18.4-2.el8_2.x86_64 git-core-2.18.4-2.el8_2.x86_64 git-core-doc-2.18.4-2.el8_2.noarch glibc-devel-2.28-101.el8.x86_64 glibc-headers-2.28-101.el8.x86_64 go-srpm-macros-2-16.el8.noarch isl-0.16.1-6.el8.x86_64 kernel-headers-4.18.0-193.28.1.el8_2.x86_64 libgcrypt-devel-1.8.3-4.el8.x86_64 libgpg-error-devel-1.31-1.el8.x86_64 libjpeg-turbo-1.5.3-10.el8.x86_64 libjpeg-turbo-devel-1.5.3-10.el8.x86_64 libmpc-1.0.2-9.el8.x86_64 libpng-devel-2:1.6.34-5.el8.x86_64 libxcrypt-devel-4.1.1-4.el8.x86_64 libxml2-devel-2.9.7-7.el8.x86_64 libxslt-devel-1.1.32-4.el8.x86_64 ocaml-srpm-macros-5-4.el8.noarch openblas-srpm-macros-2-2.el8.noarch openldap-devel-2.4.46-11.el8_1.x86_64 perl-Carp-1.42-396.el8.noarch perl-Data-Dumper-2.167-399.el8.x86_64 perl-Digest-1.17-395.el8.noarch perl-Digest-MD5-2.55-396.el8.x86_64 perl-Encode-4:2.97-3.el8.x86_64 perl-Errno-1.28-416.el8.x86_64 perl-Error-1:0.17025-2.el8.noarch perl-Exporter-5.72-396.el8.noarch perl-File-Path-2.15-2.el8.noarch perl-File-Temp-0.230.600-1.el8.noarch perl-Getopt-Long-1:2.50-4.el8.noarch perl-Git-2.18.4-2.el8_2.noarch perl-HTTP-Tiny-0.074-1.el8.noarch perl-IO-1.38-416.el8.x86_64 perl-IO-Socket-IP-0.39-5.el8.noarch perl-IO-Socket-SSL-2.066-4.el8.noarch perl-MIME-Base64-3.15-396.el8.x86_64 perl-Mozilla-CA-20160104-7.el8.noarch perl-Net-SSLeay-1.88-1.el8.x86_64 perl-PathTools-3.74-1.el8.x86_64 perl-Pod-Escapes-1:1.07-395.el8.noarch perl-Pod-Perldoc-3.28-396.el8.noarch perl-Pod-Simple-1:3.35-395.el8.noarch perl-Pod-Usage-4:1.69-395.el8.noarch perl-Scalar-List-Utils-3:1.49-2.el8.x86_64 perl-Socket-4:2.027-3.el8.x86_64 perl-Storable-1:3.11-3.el8.x86_64 perl-Term-ANSIColor-4.06-396.el8.noarch perl-Term-Cap-1.17-395.el8.noarch perl-TermReadKey-2.37-7.el8.x86_64 perl-Text-ParseWords-3.30-395.el8.noarch perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch perl-Time-Local-1:1.280-1.el8.noarch perl-URI-1.73-3.el8.noarch perl-Unicode-Normalize-1.25-396.el8.x86_64 perl-constant-1.33-396.el8.noarch perl-interpreter-4:5.26.3-416.el8.x86_64 perl-libnet-3.11-3.el8.noarch perl-libs-4:5.26.3-416.el8.x86_64 perl-macros-4:5.26.3-416.el8.x86_64 perl-parent-1:0.237-1.el8.noarch perl-podlators-4.11-1.el8.noarch perl-srpm-macros-1-25.el8.noarch perl-threads-1:2.21-2.el8.x86_64 perl-threads-shared-1.58-2.el8.x86_64 qt5-srpm-macros-5.12.5-3.el8.noarch redhat-rpm-config-122-1.el8.noarch rust-srpm-macros-5-2.el8.noarch unzip-6.0-43.el8.x86_64 xz-devel-5.2.4-3.el8.x86_64 zip-3.0-23.el8.x86_64 zlib-devel-1.2.11-16.el8_2.x86_64 Complete!

    libsass package is not available in standard yum repositories, but it can be installed by using pip3 (Python Package Manager) command.

    [root@odoo-01 ~]# pip3 install libsass WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.âââââ Requirement already satisfied: libsass in /usr/local/lib64/python3.6/site-packages Requirement already satisfied: six in /usr/lib/python3.6/site-packages (from libsass) Installing collected packages: libsass Successfully installed libsass-0.20.1

     

    Installing PostgreSQL Database Server on CentOS 8:

    Odoo uses PostgreSQL as its database backend. You can either install PostgreSQL database server on another Linux server or install it on the same Linux server that is being used for Odoo installation.

    PostgreSQL can be installed from standard yum repositories by using following Linux command.

    [root@odoo-01 ~]# dnf install -y @postgresql:12 Last metadata expiration check: 0:27:13 ago on Fri 06 Nov 2020 10:32:22 PM PKT. Dependencies resolved. ================================================================================ Package Arch Version Repo Size ================================================================================ Installing group/module packages: postgresql-server x86_64 12.1-2.module_el8.1.0+273+979c16e6 AppStream 5.5 M Installing dependencies: libpq x86_64 12.4-1.el8_2 AppStream 195 k postgresql x86_64 12.1-2.module_el8.1.0+273+979c16e6 AppStream 1.4 M Installing module profiles: postgresql/server Enabling module streams: postgresql 12 Transaction Summary ================================================================================ Install 3 Packages Total download size: 7.1 M Installed size: 30 M Downloading Packages: (1/3): libpq-12.4-1.el8_2.x86_64.rpm 123 kB/s | 195 kB 00:01 (2/3): postgresql-12.1-2.module_el8.1.0+273+979 129 kB/s | 1.4 MB 00:11 (3/3): postgresql-server-12.1-2.module_el8.1.0+ 191 kB/s | 5.5 MB 00:29 -------------------------------------------------------------------------------- Total 242 kB/s | 7.1 MB 00:29 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : libpq-12.4-1.el8_2.x86_64 1/3 Installing : postgresql-12.1-2.module_el8.1.0+273+979c16e6.x86_64 2/3 Running scriptlet: postgresql-server-12.1-2.module_el8.1.0+273+979c16e6 3/3 Installing : postgresql-server-12.1-2.module_el8.1.0+273+979c16e6 3/3 Running scriptlet: postgresql-server-12.1-2.module_el8.1.0+273+979c16e6 3/3 Verifying : libpq-12.4-1.el8_2.x86_64 1/3 Verifying : postgresql-12.1-2.module_el8.1.0+273+979c16e6.x86_64 2/3 Verifying : postgresql-server-12.1-2.module_el8.1.0+273+979c16e6 3/3 Installed: libpq-12.4-1.el8_2.x86_64 postgresql-12.1-2.module_el8.1.0+273+979c16e6.x86_64 postgresql-server-12.1-2.module_el8.1.0+273+979c16e6.x86_64 Complete!

    Execute following Linux command to initialize PostgreSQL database server.

    [root@odoo-01 ~]# postgresql-setup --initdb --unit postgresql * Initializing database in '/var/lib/pgsql/data' * Initialized, logs are in /var/lib/pgsql/initdb_postgresql.log

    Enable and start PostgreSQL database service.

    [root@odoo-01 ~]# systemctl enable --now postgresql.service Created symlink /etc/systemd/system/multi-user.target.wants/postgresql.service â /usr/lib/systemd/system/postgresql.service.

    Create a database user for Odoo CRM/ERP.

    [root@odoo-01 ~]# su - postgres -c "createuser -s odoo"

     

    Installing WKHTMLTOX on CentOS 8:

    wkhtmltox is a free and open source command line tool to render HTML into PDF or other popular formats. wkhtmltox runs completely headless and does not requires a display or display service

    You can download wkhtmltox RPM from their official download page or download source code of wkhtmltox from GitHub.

    Execute the following Linux commands to download wkhtmltox.

    [root@odoo-01 ~]# cd /tmp [root@odoo-01 tmp]# wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos8.x86_64.rpm --2020-11-06 23:06:01-- https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos8.x86_64.rpm Resolving github.com (github.com)... 13.234.176.102 Connecting to github.com (github.com)|13.234.176.102|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/131323182/4c2dd800-ab8e-11ea-95aa-09875726406d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20201106%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201106T180559Z&X-Amz-Expires=300&X-Amz-Signature=1ccf6bda2b35973549cea8d80a53985715d99e49fe0536bed7faa022ace0c061&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=131323182&response-content-disposition=attachment%3B%20filename%3Dwkhtmltox-0.12.6-1.centos8.x86_64.rpm&response-content-type=application%2Foctet-stream [following] --2020-11-06 23:06:02-- https://github-production-release-asset-2e65be.s3.amazonaws.com/131323182/4c2dd800-ab8e-11ea-95aa-09875726406d?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20201106%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20201106T180559Z&X-Amz-Expires=300&X-Amz-Signature=1ccf6bda2b35973549cea8d80a53985715d99e49fe0536bed7faa022ace0c061&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=131323182&response-content-disposition=attachment%3B%20filename%3Dwkhtmltox-0.12.6-1.centos8.x86_64.rpm&response-content-type=application%2Foctet-stream Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.178.99 Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.178.99|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 16237416 (15M) [application/octet-stream] Saving to: âwkhtmltox-0.12.6-1.centos8.x86_64.rpmâ wkhtmltox-0.12.6-1. 100%[===================>] 15.48M 311KB/s in 3m 24s 2020-11-06 23:09:27 (77.9 KB/s) - âwkhtmltox-0.12.6-1.centos8.x86_64.rpmâ saved [16237416/16237416]

    wkhtmltox RPM has been downloaded. Now use dnf command to install it on your Linux server.

    [root@odoo-01 tmp]# dnf localinstall -y wkhtmltox-0.12.6-1.centos8.x86_64.rpm Last metadata expiration check: 0:39:49 ago on Fri 06 Nov 2020 10:32:22 PM PKT. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: wkhtmltox x86_64 1:0.12.6-1.centos8 @commandline 15 M Installing dependencies: dejavu-fonts-common noarch 2.35-6.el8 BaseOS 74 k dejavu-sans-fonts noarch 2.35-6.el8 BaseOS 1.5 M fontconfig x86_64 2.13.1-3.el8 BaseOS 275 k fontpackages-filesystem noarch 1.44-22.el8 BaseOS 16 k libX11 x86_64 1.6.8-3.el8 AppStream 611 k libX11-common noarch 1.6.8-3.el8 AppStream 158 k libXau x86_64 1.0.8-13.el8 AppStream 36 k libXext x86_64 1.3.3-9.el8 AppStream 45 k libXrender x86_64 0.9.10-7.el8 AppStream 33 k libfontenc x86_64 1.1.3-8.el8 AppStream 37 k libxcb x86_64 1.13.1-1.el8 AppStream 229 k ttmkfdir x86_64 3.0.9-54.el8 AppStream 62 k xorg-x11-font-utils x86_64 1:7.5-40.el8 AppStream 103 k xorg-x11-fonts-75dpi noarch 7.5-19.el8 AppStream 2.8 M xorg-x11-fonts-Type1 noarch 7.5-19.el8 AppStream 522 k Transaction Summary ================================================================================ Install 16 Packages Total size: 22 M Total download size: 6.4 M Installed size: 139 M Downloading Packages: (1/15): libX11-common-1.6.8-3.el8.noarch.rpm 87 kB/s | 158 kB 00:01 (2/15): libXau-1.0.8-13.el8.x86_64.rpm 16 kB/s | 36 kB 00:02 (3/15): libXext-1.3.3-9.el8.x86_64.rpm 97 kB/s | 45 kB 00:00 (4/15): libfontenc-1.1.3-8.el8.x86_64.rpm 65 kB/s | 37 kB 00:00 (5/15): libXrender-0.9.10-7.el8.x86_64.rpm 30 kB/s | 33 kB 00:01 (6/15): libX11-1.6.8-3.el8.x86_64.rpm 160 kB/s | 611 kB 00:03 (7/15): libxcb-1.13.1-1.el8.x86_64.rpm 146 kB/s | 229 kB 00:01 (8/15): xorg-x11-font-utils-7.5-40.el8.x86_64.r 160 kB/s | 103 kB 00:00 (9/15): ttmkfdir-3.0.9-54.el8.x86_64.rpm 46 kB/s | 62 kB 00:01 (10/15): dejavu-fonts-common-2.35-6.el8.noarch. 36 kB/s | 74 kB 00:02 (11/15): xorg-x11-fonts-Type1-7.5-19.el8.noarch 153 kB/s | 522 kB 00:03 (12/15): fontconfig-2.13.1-3.el8.x86_64.rpm 70 kB/s | 275 kB 00:03 (13/15): fontpackages-filesystem-1.44-22.el8.no 20 kB/s | 16 kB 00:00 (14/15): xorg-x11-fonts-75dpi-7.5-19.el8.noarch 196 kB/s | 2.8 MB 00:14 (15/15): dejavu-sans-fonts-2.35-6.el8.noarch.rp 103 kB/s | 1.5 MB 00:14 -------------------------------------------------------------------------------- Total 284 kB/s | 6.4 MB 00:23 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : fontpackages-filesystem-1.44-22.el8.noarch 1/16 Installing : dejavu-fonts-common-2.35-6.el8.noarch 2/16 Installing : dejavu-sans-fonts-2.35-6.el8.noarch 3/16 Installing : fontconfig-2.13.1-3.el8.x86_64 4/16 Running scriptlet: fontconfig-2.13.1-3.el8.x86_64 4/16 Installing : ttmkfdir-3.0.9-54.el8.x86_64 5/16 Installing : libfontenc-1.1.3-8.el8.x86_64 6/16 Installing : xorg-x11-font-utils-1:7.5-40.el8.x86_64 7/16 Installing : xorg-x11-fonts-75dpi-7.5-19.el8.noarch 8/16 Running scriptlet: xorg-x11-fonts-75dpi-7.5-19.el8.noarch 8/16 Installing : xorg-x11-fonts-Type1-7.5-19.el8.noarch 9/16 Running scriptlet: xorg-x11-fonts-Type1-7.5-19.el8.noarch 9/16 Installing : libXau-1.0.8-13.el8.x86_64 10/16 Installing : libxcb-1.13.1-1.el8.x86_64 11/16 Installing : libX11-common-1.6.8-3.el8.noarch 12/16 Installing : libX11-1.6.8-3.el8.x86_64 13/16 Installing : libXext-1.3.3-9.el8.x86_64 14/16 Installing : libXrender-0.9.10-7.el8.x86_64 15/16 Installing : wkhtmltox-1:0.12.6-1.centos8.x86_64 16/16 Running scriptlet: wkhtmltox-1:0.12.6-1.centos8.x86_64 16/16 Running scriptlet: fontconfig-2.13.1-3.el8.x86_64 16/16 Verifying : libX11-1.6.8-3.el8.x86_64 1/16 Verifying : libX11-common-1.6.8-3.el8.noarch 2/16 Verifying : libXau-1.0.8-13.el8.x86_64 3/16 Verifying : libXext-1.3.3-9.el8.x86_64 4/16 Verifying : libXrender-0.9.10-7.el8.x86_64 5/16 Verifying : libfontenc-1.1.3-8.el8.x86_64 6/16 Verifying : libxcb-1.13.1-1.el8.x86_64 7/16 Verifying : ttmkfdir-3.0.9-54.el8.x86_64 8/16 Verifying : xorg-x11-font-utils-1:7.5-40.el8.x86_64 9/16 Verifying : xorg-x11-fonts-75dpi-7.5-19.el8.noarch 10/16 Verifying : xorg-x11-fonts-Type1-7.5-19.el8.noarch 11/16 Verifying : dejavu-fonts-common-2.35-6.el8.noarch 12/16 Verifying : dejavu-sans-fonts-2.35-6.el8.noarch 13/16 Verifying : fontconfig-2.13.1-3.el8.x86_64 14/16 Verifying : fontpackages-filesystem-1.44-22.el8.noarch 15/16 Verifying : wkhtmltox-1:0.12.6-1.centos8.x86_64 16/16 Installed: dejavu-fonts-common-2.35-6.el8.noarch dejavu-sans-fonts-2.35-6.el8.noarch fontconfig-2.13.1-3.el8.x86_64 fontpackages-filesystem-1.44-22.el8.noarch libX11-1.6.8-3.el8.x86_64 libX11-common-1.6.8-3.el8.noarch libXau-1.0.8-13.el8.x86_64 libXext-1.3.3-9.el8.x86_64 libXrender-0.9.10-7.el8.x86_64 libfontenc-1.1.3-8.el8.x86_64 libxcb-1.13.1-1.el8.x86_64 ttmkfdir-3.0.9-54.el8.x86_64 wkhtmltox-1:0.12.6-1.centos8.x86_64 xorg-x11-font-utils-1:7.5-40.el8.x86_64 xorg-x11-fonts-75dpi-7.5-19.el8.noarch xorg-x11-fonts-Type1-7.5-19.el8.noarch Complete!

     

    Create Linux User for Odoo Business Suite:

    Create a Linux user for Odoo business suite. This user cannot be used for authentication purpose in Odoo software, but it is only used to own the Odoo software files and processes.

    [root@odoo-01 tmp]# cd [root@odoo-01 ~]# useradd -r -m -U -s /bin/bash -d /opt/odoo odoo

     

    Installing Odoo CRM/ERP on CentOS 8:

    Switch to odoo user to start installation of Odoo CRM/ERP.

    [root@odoo-01 ~]# su - odoo [odoo@odoo-01 ~]$

    Use git command to clone the Odoo source code from GitHub to Local Linux server. We are using "--branch 14.0" because we are installing Odoo 14 which is latest at the time of this writing. You can use a different numbers if you wish to install other versions of Odoo.

    [odoo@odoo-01 ~]$ git clone https://www.github.com/odoo/odoo \ > --depth 1 \ > --branch 14.0 \ > /opt/odoo/odoo Cloning into '/opt/odoo/odoo'... warning: redirecting to https://github.com/odoo/odoo.git/ remote: Enumerating objects: 29594, done. remote: Counting objects: 100% (29594/29594), done. remote: Compressing objects: 100% (23798/23798), done. remote: Total 29594 (delta 9178), reused 12760 (delta 4687), pack-reused 0 Receiving objects: 100% (29594/29594), 127.59 MiB | 163.00 KiB/s, done. Resolving deltas: 100% (9178/9178), done. Checking out files: 100% (26075/26075), done.

    Create and activate a Python virtual environment for Odoo software.

    [odoo@odoo-01 ~]# cd ~ [odoo@odoo-01 ~]$ python3 -m venv venv [odoo@odoo-01 ~]$ source venv/bin/activate (venv) [odoo@odoo-01 ~]$

    Upgrade pip3 (Python Package Manager) by using following command.

    (venv) [odoo@odoo-01 ~]$ pip3 install --upgrade pip Installing collected packages: pip Found existing installation: pip 9.0.3 Uninstalling pip-9.0.3: Successfully uninstalled pip-9.0.3 Successfully installed pip-20.2.4â

    All of the required Python libraries are listed in a requirements.txt file within Odoo software directory. You can use this file with pip3 command to install all these libraries in one shot.

    (venv) [odoo@odoo-01 ~]$ pip3 install -r odoo/requirements.txt Ignoring gevent: markers 'python_version >= "3.7"' don't match your environment Ignoring gevent: markers 'sys_platform == "win32"' don't match your environment Ignoring greenlet: markers 'python_version >= "3.7"' don't match your environment 29% |ââââââââââ Ignoring lxml: markers 'sys_platform != "win32" and python_version >= "3.7"' don't match your environment Ignoring lxml: markers 'sys_platform == "win32"' don't match your environment Ignoring Pillow: markers 'sys_platform == "win32" and python_version >= "3.7"' don't match your environment Ignoring psycopg2: markers 'sys_platform == "win32" or python_version >= "3.8"' don't match your environment Ignoring pypiwin32: markers 'sys_platform == "win32"' don't match your environment Requirement already satisfied: Babel==2.6.0 in ./venv/lib/python3.6/site-packages (from -r odoo/requirements.txt (line 1)) (2.6.0) Requirement already satisfied: chardet==3.0.4 in ./venv/lib/python3.6/site-packages (from -r odoo/requirements.txt (line 2)) (3.0.4) Requirement already satisfied: decorator==4.3.0 in ./venv/lib/python3.6/site-packages (from -r odoo/requirements.txt (line 3)) (4.3.0) Requirement already satisfied: docutils==0.14 in ./venv/lib/python3.6/site-packages (from -r odoo/requirements.txt (line 4)) (0.14) Collecting ebaysdk==2.1.5 Using cached ebaysdk-2.1.5.tar.gz (42 kB) Collecting feedparser==5.2.1 Using cached feedparser-5.2.1.tar.bz2 (192 kB) Collecting freezegun==0.3.11 Using cached freezegun-0.3.11-py2.py3-none-any.whl (11 kB) Collecting gevent==1.1.2 Using cached gevent-1.1.2.tar.gz (2.0 MB) Collecting greenlet==0.4.10 Using cached greenlet-0.4.10.tar.gz (57 kB) Collecting html2text==2018.1.9 Using cached html2text-2018.1.9-py3-none-any.whl (21 kB) Collecting idna==2.6 Using cached idna-2.6-py2.py3-none-any.whl (56 kB) Collecting Jinja2==2.10.1 Using cached Jinja2-2.10.1-py2.py3-none-any.whl (124 kB) Collecting libsass==0.17.0 Using cached libsass-0.17.0-cp36-cp36m-manylinux1_x86_64.whl (9.2 MB) Collecting lxml==3.7.1 Using cached lxml-3.7.1.tar.gz (3.8 MB) Collecting Mako==1.0.7 Using cached Mako-1.0.7.tar.gz (564 kB) Collecting MarkupSafe==1.1.0 Using cached MarkupSafe-1.1.0-cp36-cp36m-manylinux1_x86_64.whl (27 kB) Collecting num2words==0.5.6 Using cached num2words-0.5.6-py2.py3-none-any.whl (64 kB) Collecting ofxparse==0.19 Using cached ofxparse-0.19.tar.gz (54 kB) Collecting passlib==1.7.1 Using cached passlib-1.7.1-py2.py3-none-any.whl (498 kB) Collecting Pillow==5.4.1 Using cached Pillow-5.4.1-cp36-cp36m-manylinux1_x86_64.whl (2.0 MB) Collecting polib==1.1.0 Using cached polib-1.1.0-py2.py3-none-any.whl (25 kB) Collecting psutil==5.6.6 Using cached psutil-5.6.6.tar.gz (447 kB) Collecting psycopg2==2.7.7 Using cached psycopg2-2.7.7-cp36-cp36m-manylinux1_x86_64.whl (2.7 MB) Collecting pydot==1.4.1 Using cached pydot-1.4.1-py2.py3-none-any.whl (19 kB) Collecting python-ldap==3.1.0 Using cached python-ldap-3.1.0.tar.gz (366 kB) Collecting pyparsing==2.2.0 Using cached pyparsing-2.2.0-py2.py3-none-any.whl (56 kB) Collecting PyPDF2==1.26.0 Using cached PyPDF2-1.26.0.tar.gz (77 kB) Collecting pyserial==3.4 Using cached pyserial-3.4-py2.py3-none-any.whl (193 kB) Collecting python-dateutil==2.7.3 Using cached python_dateutil-2.7.3-py2.py3-none-any.whl (211 kB) Requirement already satisfied: pytz==2019.1 in ./venv/lib/python3.6/site-packages (from -r odoo/requirements.txt (line 37)) (2019.1) Collecting pyusb==1.0.2 Using cached pyusb-1.0.2.tar.gz (54 kB) Collecting qrcode==6.1 Using cached qrcode-6.1-py2.py3-none-any.whl (31 kB) Collecting reportlab==3.5.13 Using cached reportlab-3.5.13-cp36-cp36m-manylinux1_x86_64.whl (2.6 MB) Collecting requests==2.21.0 Using cached requests-2.21.0-py2.py3-none-any.whl (57 kB) Collecting zeep==3.2.0 Using cached zeep-3.2.0-py2.py3-none-any.whl (98 kB) Collecting python-stdnum==1.8 Using cached python-stdnum-1.8.tar.gz (421 kB) Collecting vobject==0.9.6.1 Using cached vobject-0.9.6.1.tar.gz (58 kB) Collecting Werkzeug==0.16.1 Using cached Werkzeug-0.16.1-py2.py3-none-any.whl (327 kB) Collecting XlsxWriter==1.1.2 Using cached XlsxWriter-1.1.2-py2.py3-none-any.whl (142 kB) Collecting xlwt==1.3.* Using cached xlwt-1.3.0-py2.py3-none-any.whl (99 kB) Collecting xlrd==1.1.0 Using cached xlrd-1.1.0-py2.py3-none-any.whl (108 kB) Collecting six Using cached six-1.15.0-py2.py3-none-any.whl (10 kB) Collecting beautifulsoup4 Using cached beautifulsoup4-4.9.3-py3-none-any.whl (115 kB) Collecting pyasn1>=0.3.7 Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB) Collecting pyasn1_modules>=0.1.5 Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB) Collecting certifi>=2017.4.17 Using cached certifi-2020.6.20-py2.py3-none-any.whl (156 kB) Collecting urllib3<1.25,>=1.21.1 Using cached urllib3-1.24.3-py2.py3-none-any.whl (118 kB) Collecting cached-property>=1.3.0 Using cached cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB) Collecting attrs>=17.2.0 Using cached attrs-20.3.0-py2.py3-none-any.whl (49 kB) Collecting isodate>=0.5.4 Using cached isodate-0.6.0-py2.py3-none-any.whl (45 kB) Collecting defusedxml>=0.4.1 Using cached defusedxml-0.6.0-py2.py3-none-any.whl (23 kB) Collecting requests-toolbelt>=0.7.1 Using cached requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB) Collecting appdirs>=1.4.0 Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB) Collecting soupsieve>1.2; python_version >= "3.0" Using cached soupsieve-2.0.1-py3-none-any.whl (32 kB) Using legacy 'setup.py install' for ebaysdk, since package 'wheel' is not installed. Using legacy 'setup.py install' for feedparser, since package 'wheel' is not installed. Using legacy 'setup.py install' for gevent, since package 'wheel' is not installed. Using legacy 'setup.py install' for greenlet, since package 'wheel' is not installed. Using legacy 'setup.py install' for lxml, since package 'wheel' is not installed. Using legacy 'setup.py install' for Mako, since package 'wheel' is not installed. Using legacy 'setup.py install' for ofxparse, since package 'wheel' is not installed. Using legacy 'setup.py install' for psutil, since package 'wheel' is not installed. Using legacy 'setup.py install' for python-ldap, since package 'wheel' is not installed. Using legacy 'setup.py install' for PyPDF2, since package 'wheel' is not installed. Using legacy 'setup.py install' for pyusb, since package 'wheel' is not installed. Using legacy 'setup.py install' for python-stdnum, since package 'wheel' is not installed. Using legacy 'setup.py install' for vobject, since package 'wheel' is not installed. Installing collected packages: lxml, idna, certifi, urllib3, requests, ebaysdk, feedparser, six, python-dateutil, freezegun, greenlet, gevent, html2text, MarkupSafe, Jinja2, libsass, Mako, num2words, soupsieve, beautifulsoup4, ofxparse, passlib, Pillow, polib, psutil, psycopg2, pyparsing, pydot, pyasn1, pyasn1-modules, python-ldap, PyPDF2, pyserial, pyusb, qrcode, reportlab, cached-property, attrs, isodate, defusedxml, requests-toolbelt, appdirs, zeep, python-stdnum, vobject, Werkzeug, XlsxWriter, xlwt, xlrd Running setup.py install for lxml ... done Running setup.py install for ebaysdk ... done Running setup.py install for feedparser ... done Running setup.py install for greenlet ... done Running setup.py install for gevent ... done Running setup.py install for Mako ... done Running setup.py install for ofxparse ... done Running setup.py install for psutil ... done Running setup.py install for python-ldap ... done Running setup.py install for PyPDF2 ... done Running setup.py install for pyusb ... done Running setup.py install for python-stdnum ... done Running setup.py install for vobject ... done Successfully installed Jinja2-2.10.1 Mako-1.0.7 MarkupSafe-1.1.0 Pillow-5.4.1 PyPDF2-1.26.0 Werkzeug-0.16.1 XlsxWriter-1.1.2 appdirs-1.4.4 attrs-20.3.0 beautifulsoup4-4.9.3 cached-property-1.5.2 certifi-2020.6.20 defusedxml-0.6.0 ebaysdk-2.1.5 feedparser-5.2.1 freezegun-0.3.11 gevent-1.1.2 greenlet-0.4.10 html2text-2018.1.9 idna-2.6 isodate-0.6.0 libsass-0.17.0 lxml-3.7.1 num2words-0.5.6 ofxparse-0.19 passlib-1.7.1 polib-1.1.0 psutil-5.6.6 psycopg2-2.7.7 pyasn1-0.4.8 pyasn1-modules-0.2.8 pydot-1.4.1 pyparsing-2.2.0 pyserial-3.4 python-dateutil-2.7.3 python-ldap-3.1.0 python-stdnum-1.8 pyusb-1.0.2 qrcode-6.1 reportlab-3.5.13 requests-2.21.0 requests-toolbelt-0.9.1 six-1.15.0 soupsieve-2.0.1 urllib3-1.24.3 vobject-0.9.6.1 xlrd-1.1.0 xlwt-1.3.0 zeep-3.2.0

    After sucessful installation of Odoo requirements, deactivate Python virtual environment.

    (venv) [odoo@odoo-01 ~]$ deactivate [odoo@odoo-01 ~]$

     

    Configure Odoo CRM/ERP on CentOS 8:

    Create a directory for installation of any Odoo addons.

    [odoo@odoo-01 ~]$ mkdir /opt/odoo/odoo-custom-addons

    Exit from odoo user shell.

    [odoo@odoo-01 ~]$ exit logout

    Create a Logfile for Odoo CRM/ERP and adjust file permissions.

    [root@odoo-01 ~]# mkdir /var/log/odoo [root@odoo-01 ~]# touch /var/log/odoo/odoo.log [root@odoo-01 ~]# chown -R odoo: /var/log/odoo/

    Create a Odoo configuration file /etc directory by using vim editor.

    [root@odoo-01 ~]# vi /etc/odoo.conf

    Add following configurations in this file.

    [options] ; This is the password that allows database operations: admin_passwd = Str0ngPa$$word db_host = False db_port = False db_user = odoo db_password = False xmlrpc_port = 8069 logfile = /var/log/odoo/odoo.log logrotate = True addons_path = /opt/odoo/odoo/addons,/opt/odoo/odoo-custom-addons

     

    Create a Systemd Service for Odoo CRM/ERP:

    To enable autostart of Odoo during system startup, you are required to create a Systemd service unit.

    [root@odoo-01 ~]# vi /etc/systemd/system/odoo.service

    Add following directives in this file.

    [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/venv/bin/python3 /opt/odoo/odoo/odoo-bin -c /etc/odoo.conf StandardOutput=journal+console [Install] WantedBy=multi-user.target

    Enable and start Odoo service.

    [root@odoo-01 ~]# systemctl enable --now odoo.service Created symlink /etc/systemd/system/multi-user.target.wants/odoo.service â /etc/systemd/system/odoo.service.

     

    Allow Odoo Service Port in Linux Firewall:

    Odoo business suite uses default service port 8069/tcp. You have to allow this service port in Linux firewall, so that incoming traffic can reach Odoo service.

    [root@odoo-01 ~]# firewall-cmd --permanent --add-port=8069/tcp success [root@odoo-01 ~]# firewall-cmd --reload success

     

    Accessing Odoo Business Suite:

    Open URL http://odoo-01.centlinux.com:8069/ in a web browser.

    01-installing-odoo-crm-erp-on-centos-8-database

    Provide the required parameter and Odoo will create its database in PostgreSQL server according to given parameters.

    02-installing-odoo-crm-erp-on-centos-8-dashboard

    After successful configuration, the browser will be redirected to Odoo dashboard.

     

    Conclusion:

    We have successfully installed Odoo CRM/ERP on CentOS 8. Now, you can select and install your required modules from Odoo dashboard. You may read Odoo 14 Development Essentials - Fifth Edition by Daniel Reis, if you want to Build your Odoo development skills to create powerful business applications.

    No comments:

    Post a comment