Odoo is a popular open-source ERP system that offers comprehensive features such as Accounting, CRM, Sales, Inventory, and many more. For developers who want to learn and customize Odoo, installing it from the source code provides the most flexibility and control.
In this article, I’ll walk you through installing Odoo 18 (Community Edition) from source on Windows 10 or 11.
Item | Description |
---|---|
Git | For cloning the source code |
Python 3.10+ | Odoo’s primary programming language |
PostgreSQL 12+ | Odoo's database system |
Visual Studio Build Tools | Required for compiling dependencies |
Node.js + rtlcss | For UI with RTL (Right-to-Left) support |
wkhtmltopdf | For proper PDF export |
Step-by-Step Guide
Step 1: Install Git
- Download from: https://git-scm.com
- Install with all default settings
- Verify installation: git --version
Step 2: Install Python 3.10+
- Download from: https://www.python.org/downloads/windows
- ✅ Check "Add Python to PATH"
- Use "Customize Installation", make sure pip is checked
- Verify: python --version / pip --version
Step 3: Install PostgreSQL
- Download from: https://www.postgresql.org/download/windows
- Set user/password as odoo / odoo
-
Open pgAdmin and create a new Role:
- Role Name: odoo
- Password: odoo
- Privileges: ✅ Login, ✅ Create DB
Step 4: Install Visual Studio Build Tools
- Download from: https://visualstudio.microsoft.com/visual-cpp-build-tools/
- Select C++ build tools, then install
Step 5: Clone Odoo Source Code
git clone https://github.com/odoo/odoo.git -b 18.0
cd odoo
Step 6: Set Up Python Virtual Environment
- python -m venv venv
- venv\Scripts\activate
- pip install --upgrade pip setuptools wheel
- pip install -r requirements.txt
Step 7: Install Node.js and rtlcss
- Download Node.js from: https://nodejs.org
- After installation: npm install -g rtlcss
Step 8: Install wkhtmltopdf 0.12.6
- Download from: https://github.com/wkhtmltopdf/packaging/releases
- Choose: wkhtmltox_0.12.6-1.msvc2015-win64.exe
- Install normally
- Verify: wkhtmltopdf --version
Step 9: Run Odoo Server
From inside the odoo directory:
- venv\Scripts\activate
- python odoo-bin -r odoo -w odoo --addons-path=addons --db-filter=.*
Open your browser and go to:
Login:
- Email: admin
- Password: admin
How to install Odoo From Source Code บน Windows 10/11