Back to Blog
5 min read
Odoo

Getting Started with Odoo 18

Learn the fundamentals of Odoo 18 development and how to create your first custom module.

Introduction

Odoo 18 brings exciting new features and improvements to the popular open-source ERP platform. In this comprehensive guide, we'll walk you through the basics of Odoo development and show you how to create your first custom module.

Prerequisites

Before diving into Odoo development, make sure you have:

  • Python 3.10 or higher installed
  • PostgreSQL database
  • Basic understanding of Python and XML
  • Familiarity with MVC architecture

Setting Up Your Development Environment

First, let's set up a proper development environment:

# Clone Odoo 18
git clone https://github.com/odoo/odoo.git -b 18.0 --depth 1

# Create a virtual environment
python3 -m venv odoo-venv
source odoo-venv/bin/activate

# Install dependencies
pip install -r odoo/requirements.txt

Creating Your First Module

Every Odoo module follows a standard structure:

my_module/
β”œβ”€β”€ __init__.py
β”œβ”€β”€ __manifest__.py
β”œβ”€β”€ models/
β”‚   β”œβ”€β”€ __init__.py
β”‚   └── my_model.py
β”œβ”€β”€ views/
β”‚   └── my_model_views.xml
β”œβ”€β”€ security/
β”‚   └── ir.model.access.csv
└── static/
    └── description/
        └── icon.png

Conclusion

This is just the beginning of your Odoo development journey. As you progress, you'll learn about advanced ORM operations, wizards, reports, web controllers, and OWL components.