How to Install Odoo 18: A Beginner’s Guide (Linux & Windows)

Odoo is a comprehensive business management software with numerous modules for sales, inventory, CRM, and more. In this post, we’ll walk you through the steps to install Odoo 18 on both Linux (Ubuntu) and Windows systems.

Why Choose Odoo 18?

Odoo 18 offers an improved user experience, faster performance, and a wide range of business modules that can be easily customized. Let’s dive into the setup process for this latest version.

System Requirements

Ensure your computer or server meets these requirements for an optimal setup:

  • OS: Ubuntu 22.04 LTS for Linux or Windows 10/11
  • Processor: Dual-core or higher
  • Memory: 2GB RAM (4GB+ recommended for better performance)
  • Disk Space: 20GB free space
  • Python: Version 3.10 or later (ensure it’s installed on Windows)

Linux Installation Guide:

Step 1: Update Your System

Step 1: Update Your System

Start by updating your system’s package list:

  • sudo apt update && sudo apt upgrade -y

Step 2: Install Required Dependencies

Install the essential packages required by Odoo:

  • sudo apt install git python3-pip build-essential wget python3-dev python3-venv libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev libjpeg-dev liblcms2-dev libblas-dev libatlas-base-dev

Step 3: Set Up PostgreSQL Database

Odoo requires PostgreSQL as its database. Set it up by running:

  • sudo apt install postgresql
  • sudo -u postgres createuser -s odoo18user
  • sudo -u postgres createdb odoo18db

Step 4: Download Odoo 18 Files

To install Odoo, first clone the GitHub repository for Odoo 18:

  • git clone https://github.com/odoo/odoo.git –branch 18.0 –single-branch

Navigate to the new Odoo directory:

  • cd odoo

Step 5: Set Up Python Virtual Environment

Now, create a virtual environment for Odoo:

  • python3 -m venv odoo-venv
  • source odoo-venv/bin/activate
  • pip install -r requirements.txt

Step 6: Configure Odoo

Create a configuration file for Odoo with the following content:

  • nano /etc/odoo.conf

Add the following lines:

  • [options]
  • addons_path = /path_to_odoo/addons
  • db_host = False
  • db_port = False
  • db_user = odoo18user
  • db_password = False

Step 7: Start Odoo

Run Odoo using the following command:

  • ./odoo-bin -c /etc/odoo.conf

Access Odoo on your browser at:

  • http://your-server-ip:8069

Windows Installation Guide

Step 1: Install Python

Download and install Python 3.10 or later from python.org. Make sure to check “Add Python to PATH” during installation.

Step 2: Install Git for Windows

Download Git for Windows from git-scm.com and install it. This will allow you to clone the Odoo repository.

Step 3: Install PostgreSQL

Download PostgreSQL for Windows from postgresql.org and install it. During setup, create a user and database for Odoo:

  1. Create a PostgreSQL User: Open the PostgreSQL command prompt and create a new user.
  • CREATE USER odoo18user WITH SUPERUSER PASSWORD ‘password’;

2. Create a Database: Assign the database to this user.

  • CREATE DATABASE odoo18db WITH OWNER odoo18user;

Step 4: Clone Odoo Repository

Open the Git Bash terminal, then clone the Odoo 18 repository:

  • git clone https://github.com/odoo/odoo.git –branch 18.0 –single-branch

Step 5: Install Odoo Requirements

In the command prompt, navigate to the Odoo folder, set up a virtual environment, and install dependencies:

  • cd odoo
  • python -m venv odoo-venv
  • odoo-venv\Scripts\activate
  • pip install -r requirements.txt

Step 6: Configure Odoo

Create an Odoo configuration file (odoo.conf) with similar settings as Linux:

  • [options]
  • addons_path = /path_to_odoo/addons
  • db_host = localhost
  • db_user = odoo18user
  • db_password = ‘password’

Step 7: Start Odoo

Run Odoo by executing:

  • python odoo-bin -c odoo.conf

Then, open your browser and go to:

  • http://localhost:8069

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *