Odoo Tutorial
Learn Odoo step by step: 39 lessons in 9 chapters with examples, quizzes, diagrams and projects.
Start learning →
of lessons completed
Getting Started
- What Is Odoo? Learn what Odoo is, which business problems it solves, how its apps share one database, and why developers customise it with Python modules.
- Odoo Architecture Understand Odoo's three-tier architecture: PostgreSQL, the Python server with its ORM and registry, and the web client that talks to it through JSON-RPC.
- Community, Enterprise and Odoo Versions Compare Odoo Community and Enterprise, the three hosting options (Online, Odoo.sh, on-premise), and learn how Odoo's yearly version numbers work for modules.
- Exploring the Odoo Interface Tour the Odoo web client as a developer: apps menu, list, form and kanban views, search filters, the chatter and how each screen maps to a model and a view.
Concepts and Setup
- Installing Odoo from Source and with Docker Install Odoo Community for development, either from the Git source with a Python virtual environment or with Docker Compose, and start your first database.
- odoo.conf and Command-Line Options Configure Odoo with odoo.conf and command-line options: addons path, database, workers, logging and dev mode, plus the shell and scaffold commands.
- Databases and Developer Mode See how an Odoo database is organised, how ir_model tables describe models and fields, how to back up and restore, and how developer mode helps.
- Module Structure and the Manifest Learn the folder layout of an Odoo module and every key of __manifest__.py: name, depends, data, demo, assets, license, and how Odoo discovers modules.
- Your First Module: Hello Odoo Build a complete minimal Odoo module with a model, a list and form view, a menu and access rights, install it, and understand what each file contributes.
Modules and Business Apps
- Module Dependencies and Loading Order Learn how the depends key shapes Odoo's module graph, how load order is computed, what circular dependencies do, and how glue modules with auto_install work.
- Data Files and XML IDs Load records with Odoo XML and CSV data files: record, field, ref, eval, external ids, noupdate and how updates treat existing records.
- The Standard Business Apps A developer's tour of Odoo's core apps and models: contacts, products, sales, purchase, inventory and invoicing, with the model names you will meet in code.
- From Quotation to Cash: One Workflow End to End Follow one sale through Odoo: quotation, confirmation, delivery, invoice and payment. See the documents created at each step and where developers hook in.
- Module Lifecycle: Install, Update, Uninstall and Hooks Learn what happens when an Odoo module is installed, updated and removed, and use init and uninstall hooks plus migration scripts safely.
Models and ORM
- Defining Models and Fields Define Odoo models: Model, TransientModel and AbstractModel, class attributes, scalar field types, field options, selections and magic fields.
- Relational Fields Link Odoo models with Many2one, One2many and Many2many fields: storage, ondelete, domains, related fields and the create/write command tuples.
- Recordsets and the Environment Master Odoo recordsets and the environment: singleton checks, mapped, filtered, sorted, set operations, sudo, with_context and with_company.
- Searching and CRUD with Domains Create, read, update and delete records in the Odoo ORM and write search domains with operators, prefix logic, limit, order and search_count.
- Computed Fields, Onchange and Constraints Add logic to Odoo models: computed fields with @api.depends, stored versus non-stored, onchange helpers and validation with @api.constrains.
- Model Inheritance Extend Odoo models without touching core code: _inherit, prototype copies, _inherits delegation, abstract mixins and overriding methods with super().
Views and QWeb
- Odoo Views and the XML Architecture Learn how Odoo describes screens as XML records: the ir.ui.view model, the arch field, the main view types, view modes in actions and how the web client loads them.
- Form Views, Groups and Widgets Build Odoo form views: sheet, group, notebook, header buttons and statusbar, widgets, dynamic invisible, readonly and required attributes with the modern expression syntax.
- List, Search and Kanban Views Define Odoo list, search and kanban views: columns, optional fields, decorations, filters, group by, domains and kanban cards, with runnable Python stand-ins for domains.
- QWeb Templates Learn QWeb, the XML templating language behind Odoo reports, kanban cards and website pages: t-if, t-foreach, t-out, t-att, t-call and t-set, with a runnable mini renderer.
Security and Access
- Users and Groups Understand Odoo security basics: res.users, res.groups, implied groups, categories, the superuser and how groups connect to menus, views and access rights.
- Access Rights with ir.model.access Learn Odoo model access rights: the ir.model.access.csv file, read write create unlink permissions per group, the missing-file warning and how to test access in code.
- Record Rules Learn how Odoo record rules filter which rows a user may see or change: ir.rule domains, user and company_ids variables, global versus group rules and multi-company.
- Field Security, sudo and Safe Coding Protect Odoo data in code: field-level groups, sudo and with_user, checking access by hand, avoiding SQL injection with parameters, safe HTML and common security mistakes.
Reports and Integration
- QWeb PDF Reports Build PDF and HTML reports in Odoo: ir.actions.report, the report template, docs and doc_ids, external_layout, paper formats, translations and a runnable report-rendering stand-in.
- Controllers and HTTP Routes Write Odoo controllers: the http.route decorator, auth modes public user and none, type http versus json, request.env, parameters, CSRF and a runnable routing stand-in.
- External API: XML-RPC and JSON-RPC Connect to Odoo from outside: authenticate over XML-RPC, call search_read, create, write and unlink with execute_kw, understand the wire format and API keys, with Python stand-ins.
- Automated Actions, Cron Jobs and Email Automate Odoo: scheduled actions with ir.cron, server actions, automation rules, email templates and the mail thread with chatter, plus runnable scheduler and template stand-ins.
Deployment and Customisation
- Configuration and Deployment Configure and deploy Odoo: the odoo.conf file, command-line options, addons_path, workers and limits sizing, a systemd service and a production checklist with runnable calculators.
- Docker, nginx and HTTPS for Odoo Run Odoo and PostgreSQL with Docker Compose, mount custom addons and config, put nginx in front with HTTPS and websocket routing, and understand volumes, with runnable stand-ins.
- Backups, Restores and Upgrades Protect an Odoo database: backups with pg_dump and the filestore, the database manager zip, automated rotation, restore tests, and a safe plan for module and major-version upgrades.
- Customising with View and Model Inheritance Customise Odoo without editing core code: inherit views with xpath and position, extend models with _inherit, add fields to existing apps, and know when to use Studio or code.
Projects and Practice
- Project: A Library Module Build a complete Odoo library module on paper: manifest, models, security, views, menus, a report and demo data, with a runnable Python prototype of the business logic.
- Project: A Helpdesk Workflow Design an Odoo helpdesk module: ticket model with stages, a validated workflow, SLA deadlines, automatic assignment, kanban board and security, with runnable Python prototypes.
- Odoo Practice Exercises and Interview Questions Test your Odoo knowledge with views, security, reports, API and deployment exercises, plus common interview questions with short answers and runnable Python practice tasks.