Installing Odoo 16.0 CRM on Windows 10


NOTE: It is not advisable to run Odoo Server on Windows due to complexities in scaling, monitoring and logs. The ideal Odoo Server setup are Ubuntu/Debian standalone or Containerized.
This Window setup is good for 1-5 users or if you just want to try out Odoo.


I. Overview

This guide is for installing Odoo 16.0 from source in Windows computer.
Reference: https://www.odoo.com/documentation/16.0/administration/install/source.html 

II. Required Installers

SoftwareLocationURL
Git w/ Git Bashhttps://git-scm.com/downloads  (Windows 64-bit)
Python 3.11.5https://www.python.org/downloads/windows/ (Windows Installer 64-bit)
PostgreSQL 16 https://www.enterprisedb.com/downloads/postgres-postgresql-downloads (Windows x86-64)
Microsoft C++ Build Toolshttps://visualstudio.microsoft.com/visual-cpp-build-tools 
wkhtmltopdfhttps://wkhtmltopdf.org/downloads.html   (Windows Vista or later 64-bit)

III. Pre-requisites

  • Available Disk Space at least 50 GB
  • 8GB of RAM
  • Internet Access

IV. Installation Steps

Step 1. Install Git w/ Git Bash

  1. Run the installer with all the default values.
  2. After installation, verify Git is installed.  From command line:  git –version

Step 2. Install Python 3.11.5

  1. Run the installer with all the default values. 
  2. Make sure the “Add Python to environment variables” is checked.
  3. After installation, verify Python is installed.  From command line:  python –version

Step 3. Install Visual Microsoft C++ Build Tools

Run the installer. Check the “Desktop Development with C++”. Click “Install” button

Step 4. Install wkhtmltopdf

  1. Run installer with default options.

Step 5. Install PostgreSQL 16

  1. Select components. (all)
  2. Set PostgreSQL directory
  3. Set superuser (postgres) password
  4. Set port number. Default: 5432
  5. Sel locale. [Default locale]

Step 6. Create database user “odoo”

  1. Open pgAdmin and enter the superuser “postgres” password, set from Step #4.3
  2. Right-click on “PostgreSQL 16” -> Create -> Login/Group Role
  3. In General tab, enter the Name as “odoo”
  4. In Definition tab, enter the password
  5. In Privileges tab, enable “Can login?” and “Create databases”
  6. Click “Save” button


Step 7. Install Odoo from source

  1. Open Git Bash
  2. Create a directory called “applications”, in current user directory.
    Commands:  mkdir applications
  3. Clone Odoo 16.0 from source.
    Commands:
    cd applications
    git clone https://github.com/odoo/odoo.git –single-branch -b 16.0
  4. Install Python packages. The 2 pip install commands will take some time.

    Commands:
    cd ~/applications/odoo
    pip install setuptools wheel
    pip install -r requirements.txt

Step 8. Run Odoo in command line

  1. Run Odoo in the command line and keep the window open.
    Command:
    python odoo-bin -r odoo -w <oddo-db-password> –addons-path=addons -d odoo

    Where:
    Database user -> odoo
    Database name -> odoo
    <oddo-db-password>  is the password set during “odoo” user creation in PostgreSQL

Step 9. Access Odoo from Browser

  1. Access Odoo URL at http://localhost:8069

Test Users:
Admin User:  admin   Password: admin
Regular User:  demo   Password: demo

  • October 10, 2023