Warning: Constant DISALLOW_FILE_EDIT already defined in /home/impactfirst.co/public_html/wp-config.php on line 94
Panduan Odoo Installation - Impact.
Menu Close

Odoo Installation

Share on facebook
Share on twitter
Share on linkedin

Bab ini termasuk ke dalam Panduan pengguna Odoo oleh Impact

Chapters:

IN THIS ARTICLE

Share on facebook
Share on twitter
Share on linkedin

Odoo menjadi semakin populer karena fleksibilitasnya dan jumlah modul yang tersedia. Bagian terbaiknya adalah, Odoo menyediakan open-source. Sehingga perusahaan dapat download Odoo Community secara gratis dan mencobanya sebelum memutuskan apakah mereka perlu membeli Odoo Enterprise atau apakah mereka memerlukan penyesuaian lebih lanjut.

Namun, menginstal dan mengimplementasikan Odoo Community dapat sedikit membingungkan, terutama bagi perusahaan yang belum pernah menginstal sistem ERP atau yang tidak memiliki tim IT. Panduan ini dibuat untuk membantu Anda menginstal dan mengimplementasikan Odoo Community sampai sukses secara step-by-step, lengkap, dan mudah dimengerti.

Berikut adalah langkah-langkah yang harus Anda lakukan untuk mengimplementasikan Odoo Community: 

  1. Odoo installation
  2. General settings
  3. Module settings
  4. Module configurations
  5. Data migration

Terdapat 3 cara untuk menginstall Odoo Community:

1. Packaged Installer

Langkah ini melibatkan pengunduhan Odoo ke server Anda dan menginstalnya. Langkah ini merupakan cara termudah tanpa perlu coding, dan direkomendasikan untuk pemula.

Odoo menyediakan packaged installer untuk Windows, distribusi berbasis deb (Debian, Ubuntu, …) dan distribusi berbasis RPM (Fedora, CentOS, RHEL, …).

1.1. Windows

1. Download penginstal dari halaman pengunduhan Odoo kami.

2. Jalankan file yang di download.

Warning

Pada Windows 8 dan versi yang lebih baru, Anda mungkin melihat peringatan berjudul “Windows melindungi PC Anda/ Windows protected your PC”

Klik More Info dan kemudian Run anyway.

3. Terima UAC prompt

4. Lanjutkan ke langkah instalasi lain-nya.

Odoo secara otomatis akan mulai dijalankan saat instalasi sudah selesai.  

1.2. Debian/ Ubuntu

Odoo 15.0 ‘deb’ package saat ini mendukung Debian 11 (Bullseye), Ubuntu 20.04 (Focal) atau diatasnya.

1.2.1. Prepare

Odoo membutuhkan server PostgreSQL agar dapat berjalan dengan baik.  Konfigurasi default untuk Odoo ‘deb’ package adalah menggunakan server PostgreSQL pada host yang sama dengan Odoo Anda. Jalankan perintah berikut untuk menginstal server PostgreSQL:

$ sudo apt install postgresql -y

Warning

wkhtmltopdf is not installed through pip and must be installed manually in version 0.12.5 for it to support headers and footers. See our wiki for more details on the various versions.

1.2.2. Repository

Odoo S.A. menyediakan repositori yang dapat digunakan bersama dengan distribusi Debian dan Ubuntu. Hal ini dapat digunakan untuk menginstal Odoo Community Edition dengan mengeksekusi perintah dibawah ini sebagai akar:

# wget -O – https://nightly.odoo.com/odoo.key | apt-key add –

#echo “deb http://nightly.odoo.com/15.0/nightly/deb/ ./” >> /etc/apt/sources.list.d/odoo.list

# apt-get update && apt-get install odoo

Setelah itu, Anda bisa menggunakan perintah apt-get upgrade yang biasa untuk menjaga instalasi agar tetap up-to-date.

1.2.3. Deb Package

Alih-alih menggunakan repositori seperti dijelaskan di atas, ‘rpm’ package dapat di download dari halaman unduhan Odoo kami.

Selanjutnya, eksekusi perintah dibawah ini sebagai akar: 

# dpkg -i <path_to_installation_package> # this probably fails with missing dependencies

# apt-get install -f # should install the missing dependencies

# dpkg -i <path_to_installation_package>

Perintah ini akan menginstal Odoo sebagai layanan, membuat pengguna PostgreSQL yang diperlukan dan secara otomatis memulai server.

 Warning

The python3-xlwt Debian package does not exists in Debian Buster nor Ubuntu 18.04. This python module is needed to export into xls format.

If you need the feature, you can install it manually with:

$ sudo pip3 install xlwt

 Warning

The num2words python package does not exists in Debian Buster nor Ubuntu 18.04. Textual amounts will not be rendered by Odoo and this could cause problems with the l10n_mx_edi module.

If you need this feature, you can install manually with:

$ sudo pip3 install num2words

1.3. Fedora

Odoo 15.0 ‘rpm’ package mendukung Fedora 34.

1.3.1. Prepare

Odoo membutuhkan server PostgreSQL agar dapat berjalan dengan baik.  Pastikan perintah sudo tersedia dan terkonfigurasi, lalu, jalankan perintah berikut ini untuk menginstal server PostgreSQL:

$ sudo dnf install -y postgresql-server

$ sudo postgresql-setup –initdb –unit postgresql

$ sudo systemctl enable postgresql

$ sudo systemctl start postgresql

 Warning

wkhtmltopdf is not installed through pip and must be installed manually in version 0.12.5 for it to support headers and footers. See our wiki for more details on the various versions.

1.3.2. Repository

Odoo S.A. menyediakan repositori yang dapat digunakan bersama dengan distribusi Fedora. Hal ini dapat digunakan untuk menginstal Odoo Community Edition dengan mengeksekusi perintah dibawah ini:

$ sudo dnf config-manager –add-repo=https://nightly.odoo.com/15.0/nightly/rpm/odoo.repo

$ sudo dnf install -y odoo

$ sudo systemctl enable odoo

$ sudo systemctl start odoo

1.3.3. RPM Package

Alih-alih menggunakan repositori seperti dijelaskan di atas, ‘rpm’ package dapat di download dari halaman unduhan Odoo kami.

Setelah terdownload, paket dapat diinstal menggunakan manajer ‘dnf’ package:

$ sudo dnf localinstall odoo_15.0.latest.noarch.rpm

$ sudo systemctl enable odoo

$ sudo systemctl start odoo

2. Source Install

2.1. Windows

2.1.1. Fetch the sources

There are two ways to obtain the source code of Odoo: as a zip archive or through git.

  • GitHub Repository

The following requires git to be installed on your machine and that you have basic knowledge of git commands.

 

C:\> git clone https://github.com/odoo/odoo.git

2.1.2. Prepare

Python

Odoo requires Python 3.7 or later to run. Visit Python’s download page to download and install the latest version of Python 3 on your machine.

During installation, check Add Python 3 to PATH, then click Customize Installation and make sure that pip is checked.

Note

If Python 3 is already installed, make sure that the version is 3.7 or above, as previous versions are not compatible with Odoo.

C:\> python –version

Verify also that pip is installed for this version.

C:\> pip –version

PostgreSQL

Odoo uses PostgreSQL as a database management system. Download and install PostgreSQL (supported version: 10.0 and later).

By default, the only user is postgres but Odoo forbids connecting as postgres, so you need to create a new PostgreSQL user:

Add PostgreSQL’s bin directory (by default: C:\Program Files\PostgreSQL\<version>\bin) to your PATH.

Create a postgres user with a password using the pg admin gui:

Open pg Admin.

Double-click the server to create a connection.

Select Object ‣ Create ‣ Login/Group Role.

Enter the username in the Role Name field (e.g. odoo).

Open the Definition tab and enter the password (e.g. odoo), then click Save.

Open the Privileges tab and switch Can login? to Yes and Create database? to Yes.

Dependencies

Before installing the dependencies, you must download and install the Build Tools for Visual Studio. When prompted, select C++ build tools in the Workloads tab and install them.

Odoo dependencies are listed in the requirements.txt file located at the root of the Odoo community directory.

Tip


It can be preferable to not mix python modules packages between different instances of Odoo or with your system. You can use virtualenv to create isolated Python environments.

Navigate to the path of your Odoo Community installation (CommunityPath) and run pip on the requirements file in a terminal with Administrator privileges:

C:\> cd \CommunityPath

C:\> pip install setuptools wheel

C:\> pip install -r requirements.txt

Warning

wkhtmltopdf is not installed through pip and must be installed manually in version 0.12.5 for it to support headers and footers. See our wiki for more details on the various versions.

For languages with right-to-left interface (such as Arabic or Hebrew), the package rtlcss is needed:

Download and install nodejs.

Install rtlcss:

C:\> npm install -g rtlcss

Edit the System Environment’s variable PATH to add the folder where rtlcss.cmd is located (typically: C:\Users\<user>\AppData\Roaming\npm\).

2.1.3. Running Odoo

Once all dependencies are set up, Odoo can be launched by running odoo-bin, the command-line interface of the server. It is located at the root of the Odoo Community directory.

To configure the server, you can either specify command-line arguments or a configuration file.

Tip

 

For the Enterprise edition, you must add the path to the enterprise addons to the addons-path argument. Note that it must come before the other paths in addons-path for add ons to be loaded correctly.

Common necessary configurations are:

PostgreSQL user and password.

Custom addon paths beyond the defaults, to load your own modules.

A typical way to run the server would be:

C:\> cd CommunityPath/

C:\> python odoo-bin -r dbuser -w dbpassword –addons-path=addons -d mydb

Where CommunityPath is the path of the Odoo Community installation, dbuser is the PostgreSQL login, dbpassword is the PostgreSQL password and mydb is the default database to serve on localhost:8069.

See also

The exhaustive list of arguments for odoo-bin.

2.2. Linux

2.2.1. Fetch the sources

  • GitHub Repository

The following requires git to be installed on your machine and that you have basic knowledge of git commands.

 

C:\> git clone https://github.com/odoo/odoo.git

2.2.2. Prepare

Python

Odoo requires Python 3.7 or later to run. Use your package manager to download and install Python 3 on your machine if it is not already done.

Note

If Python 3 is already installed, make sure that the version is 3.7 or above, as previous versions are not compatible with Odoo.

$ python3 –version

Verify also that pip is installed for this version.

$ pip3 –version

PostgreSQL

Odoo uses PostgreSQL as a database management system. Use your package manager to download and install PostgreSQL (supported version: 10.0 and later).

On Debian/Unbuntu, it can be achieved by executing the following:

 

$ sudo apt install postgresql postgresql-client

By default, the only user is postgres but Odoo forbids connecting as postgres, so you need to create a new PostgreSQL user:

 

$ sudo -u postgres createuser -s $USER

$ createdb $USER

 Note

Because your PostgreSQL user has the same name as your Unix login, you will be able to connect to the database without password.

Dependencies

For libraries using native code, it is necessary to install development tools and native dependencies before the Python dependencies of Odoo. They are available in -dev or -devel packages for Python, PostgreSQL, libxml2, libxslt1, libevent, libsasl2 and libldap2.

On Debian/Unbuntu, the following command should install all the required libraries:

$ sudo apt install python3-dev libxml2-dev libxslt1-dev libldap2-dev libsasl2-dev \

libtiff5-dev libjpeg8-dev libopenjp2-7-dev zlib1g-dev libfreetype6-dev \

liblcms2-dev libwebp-dev libharfbuzz-dev libfribidi-dev libxcb1-dev libpq-dev

Odoo dependencies are listed in the requirements.txt file located at the root of the Odoo community directory.

Tip

 

It can be preferable to not mix python modules packages between different instances of Odoo or with your system. You can use virtualenv to create isolated Python environments.

Navigate to the path of your Odoo Community installation (CommunityPath) and run pip on the requirements file:

 

$ cd /CommunityPath

$ pip3 install setuptools wheel

$ pip3 install -r requirements.txt

Warning

wkhtmltopdf is not installed through pip and must be installed manually in version 0.12.5 for it to support headers and footers. See our wiki for more details on the various versions.

For languages with right-to-left interface (such as Arabic or Hebrew), the package rtlcss is needed:

Download and install nodejs and npm with your package manager.

Install rtlcss:

$ sudo npm install -g rtlcss

2.2.3. Running Odoo

Once all dependencies are set up, Odoo can be launched by running odoo-bin, the command-line interface of the server. It is located at the root of the Odoo Community directory.

To configure the server, you can either specify command-line arguments or a configuration file.

Common necessary configurations are:

PostgreSQL user and password. Odoo has no defaults beyond psycopg2’s defaults: connects over a UNIX socket on port 5432 with the current user and no password.

Custom addon paths beyond the defaults, to load your own modules.

A typical way to run the server would be:

 

$ cd /CommunityPath

$ python3 odoo-bin –addons-path=addons -d mydb

Where CommunityPath is the path of the Odoo Community installation and mydb is the default database to serve on localhost:8069.

2.3. Mac OS

2.3.1. Fetch the sources

  • GitHub Repository

The following requires git to be installed on your machine and that you have basic knowledge of git commands.

 

C:\> git clone https://github.com/odoo/odoo.git

2.3.2. Prepare

Python

Odoo requires Python 3.7 or later to run. Use your preferred package manager (homebrew, macports) to download and install Python 3 on your machine if it is not already done.

Note

If Python 3 is already installed, make sure that the version is 3.7 or above, as previous versions are not compatible with Odoo.

$ python3 –version

Verify also that pip is installed for this version.

$ pip3 –version

PostgreSQL

Odoo uses PostgreSQL as database management system. Use postgres.app to download and install PostgreSQL (supported version: 10.0 and later).

By default, the only user is postgres but Odoo forbids connecting as postgres, so you need to create a new PostgreSQL user:

 

$ sudo -u postgres createuser -s $USER

$ createdb $USER

Note

Because your PostgreSQL user has the same name as your Unix login, you will be able to connect to the database without password.

Dependencies

Odoo dependencies are listed in the requirements.txt file located at the root of the Odoo community directory.

Tip

 

It can be preferable to not mix python modules packages between different instances of Odoo or with your system. You can use virtualenv to create isolated Python environments.

Navigate to the path of your Odoo Community installation (CommunityPath) and run pip on the requirements file:
 

$ cd /CommunityPath

$ pip3 install setuptools wheel

$ pip3 install -r requirements.txt

Warning

Non-Python dependencies need to be installed with a package manager:

Download and install the Command Line Tools:

$ xcode-select –install

Download and install the package manager of your choice (homebrew, macports).

Install non-python dependencies.

Warning

wkhtmltopdf is not installed through pip and must be installed manually in version 0.12.5 for it to support headers and footers. See our wiki for more details on the various versions.

For languages with right-to-left interface (such as Arabic or Hebrew), the package rtlcss is needed:

Download and install nodejs with your preferred package manager (homebrew, macports).

Install rtlcss:

$ sudo npm install -g rtlcss

2.3.3. Running Odoo

Once all dependencies are set up, Odoo can be launched by running odoo-bin, the command-line interface of the server. It is located at the root of the Odoo Community directory.

To configure the server, you can either specify command-line arguments or a configuration file.

Common necessary configurations are:

PostgreSQL user and password. Odoo has no defaults beyond psycopg2’s defaults: connects over a UNIX socket on port 5432 with the current user and no password.

Custom addon paths beyond the defaults, to load your own modules.

A typical way to run the server would be:

 

$ cd /CommunityPath

$ python3 odoo-bin –addons-path=addons -d mydb

Where CommunityPath is the path of the Odoo Community installation and mydb is the default database to serve on localhost:8069.

3. Docker

Langkah ini menawarkan fleksibilitas paling tinggi, namun disarankan dilakukan oleh software engineers yang sudah berpengalaman. Panduan lengkap tentang bagaimana menggunakan Odoo dengan Docker dapat dilihat pada link ini.