Skip to content

Getting Started

rafageist edited this page Nov 30, 2026 · 1 revision

Getting Started

Open your addons

turbodoo ~/src/my-addons               # the folder, in the Explorer
turbodoo ~/src/my-addons/library/models/book.py   # that file, in the folder of its addons
turbodoo                               # nothing open yet: File > Open folder (Ctrl+O)

The desktop has the Explorer at the left, the editors in the middle and the Outline of the active file at the right. F10 opens the menu bar, Alt and a letter opens that menu, and the status line at the bottom always shows the keys that work now.

The desktop: the Explorer with the addons marked by their version, the editor, and the Outline of the models, fields and methods

Tell Turbodoo where Odoo is

Completion and go to definition read Odoo's own source. Give Turbodoo your interpreter and the Odoo checkouts once, on the command line or in Options > Python and Odoo (saved in the workspace when there is one):

turbodoo ~/src/my-addons --python ~/venvs/odoo19 --odoo ~/src/odoo \
    --enterprise ~/src/enterprise --addons ~/src/my-addons --addons ~/src/oca-web
  • --python: the interpreter, or its virtual environment (default: the folder's .venv, else the active one);
  • --odoo: the Odoo Community checkout, the folder with odoo/ and addons/;
  • --enterprise: the Enterprise addons folder;
  • --addons: a folder of custom addons; repeat it for more.

No database, no running Odoo and no connection are needed for this: the language server only reads files.

Options > Python and Odoo

A first module in a minute

File > New Odoo module, a name and a model, Preview, Generate: the module is written and opened (see New Odoo Module). Then F12 on models.Model takes you into Odoo's source, Ctrl+Space completes field types, and Ctrl+F9 debugs. Alt+X exits, asking about anything unsaved.

Clone this wiki locally