Skip to content
Tutorials Center
My learning

Topics

Lesson 1 of 39 ยท 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.

Most companies run on a pile of separate tools: one for sales quotes, one for stock, one for invoices, one for the website, and a spreadsheet that glues them together. Every tool has its own list of customers, and every change has to be copied by hand. Odoo takes the opposite approach. It is one business suite made of many apps that all read and write the same database, so a customer, a product or an invoice exists exactly once.

In this lesson you will learn what Odoo is, what its apps cover, and how a developer fits in. You will also see why this course teaches Odoo through Python: the framework is written in Python, and the real skill is shaping it with your own modules.

Odoo needs a PostgreSQL server and the full Odoo codebase, which cannot run inside a web page. In this course every Odoo code listing is shown read-only, and every runnable example is a small Python stand-in that reproduces the underlying idea (such as a model registry or a search domain). Each stand-in is labelled. Odoo's own behaviour is described only where it is certain.

A suite, not a single product

Odoo started in 2005 under the name TinyERP and later became OpenERP. Today it is called Odoo. It is an ERP (enterprise resource planning) and CRM (customer relationship management) platform. In plain words: it is software that runs the day-to-day work of a company.

The apps are grouped by business area:

What Odoo covers

Sales CRM, quotes, orders, subscriptions
Supply chain Inventory, purchase, manufacturing
Finance Invoicing, accounting, expenses
Websites Website builder, e-commerce, blog

Each area is one or more apps.

1 / 3

The important point is the third slide. When a salesperson confirms a quotation, the same record can trigger a delivery in Inventory and an invoice in Accounting. No export and import step is needed because all the apps use the same tables.

Why companies choose Odoo

  • Modular. You install the Sales app today and Inventory next quarter. Apps are optional modules.
  • Open source core. The Community edition is free software under the LGPL. You can read its source code and extend it.
  • Customisable. Developers add fields, screens, reports and workflows in a clean, documented way instead of editing the core.
  • Web based. Users only need a browser. You host it yourself or use Odoo's hosted service.

What a developer does

An Odoo developer rarely writes a whole application from nothing. The typical work looks like this:

  1. Add a field to an existing model, for example a "loyalty level" on a customer.
  2. Add that field to a form view so users can edit it.
  3. Write a Python method that computes something, such as a discount.
  4. Restrict who can see or change it with access rules.
  5. Print it on a PDF report, or expose it through an external API.

Each of those five steps has a chapter in this course. The glue between them is the module: a folder containing Python files, XML files and a manifest. Everything in Odoo, including the standard Sales app, is a module, so what you learn to build is the same thing Odoo itself is made from.

A first look at Odoo code

Here is what a tiny Odoo model looks like. This is real Odoo code shown for reading only. You will learn each part in later lessons.

Python
from odoo import fields, models


class Pet(models.Model):
    _name = "vet.pet"
    _description = "Pet"

    name = fields.Char(required=True)
    birthday = fields.Date()
    owner_id = fields.Many2one("res.partner", string="Owner")

That is all the Python you need to get a database table, a list screen and a form, once you add a small XML view file. Odoo creates the table vet_pet automatically and gives you create, read, update and delete operations for free.

A runnable stand-in

To make the idea tangible, the next example builds a toy "model registry" in plain Python. Odoo keeps something like this: a dictionary of model names pointing to classes. Press Run and read the output; later lessons build on the idea.

Python Stand-in: a toy model registry (not real Odoo)

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Real Odoo does this with a metaclass and loads one registry per database, but the principle is the same: a model name is a global key, and many modules can contribute to it.

Where Odoo is used

Small shops use Odoo for invoicing and stock. Manufacturers use it to plan production orders. Service companies use Projects and Timesheets to bill hours. Because the apps are modules, one installation can be a point-of-sale system for a cafe, while another is a full ERP with hundreds of users.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What is the main advantage of Odoo storing all apps in one database?

    Because apps share one database, a sales order can lead to a delivery and an invoice without copying data between tools.
  2. 2. In which language is the Odoo framework mainly written?

    The server side of Odoo, including models and business logic, is written in Python. Views use XML and the web client uses JavaScript.
  3. 3. What is a module in Odoo?

    Everything in Odoo is a module, including the standard apps. You customise Odoo by writing your own modules.
  4. 4. Why are the runnable examples in this course labelled stand-ins?

    Odoo needs PostgreSQL and the full server, so the site shows real Odoo code read-only and runs small Python models of the concepts.

Summary

  • Odoo is a modular, open-source business suite (ERP and CRM) built on Python and PostgreSQL.
  • Apps share one database, so documents link naturally from quote to delivery to invoice.
  • Developers customise Odoo by writing modules that add models, views, security and reports.
  • Real Odoo code on this site is read-only; runnable examples are clearly labelled Python stand-ins.

Next: Odoo Architecture