Install your IDE extension
Install the OdooLS extension for your editor:The VSCode and PyCharm extensions bundle the OdooLS server binary — no separate installation needed.
For Neovim and Zed, see Installation to build the binary from source.
VSCode
Install from the VS Code Marketplace
PyCharm
Install from the JetBrains Plugin Marketplace
Neovim
Configure via nvim-lspconfig
Zed
Install via the Zed extension manager
Create an odools.toml configuration file
Add an OdooLS searches for
odools.toml file at the root of your workspace (or any parent directory).
At minimum, point it to your Odoo community source and your addon directories:odools.toml
odools.toml by walking up the directory tree from the workspace root,
so you can place it in a parent directory shared across multiple Odoo projects.
See Configuration File for all available settings.Open your Odoo project
Open your addon or workspace folder in your IDE. OdooLS will detect the
odools.toml
configuration and begin indexing your Odoo codebase.A loading indicator will appear while OdooLS builds its symbol index (VSCode shows this
in the status bar; PyCharm 2025.3+ displays a progress bar).Verify it's working
Once indexing is complete, verify OdooLS is active:
- Hover over an Odoo model class — you should see its name and base models
- Ctrl+Space inside
self.env["— model name suggestions should appear - Open a
__manifest__.py— incorrect module dependencies should show as diagnostics - Ctrl+Click (or F12) on a field name — go-to-definition should jump to the field declaration
Using parse mode (CI / batch diagnostics)
OdooLS includes a--parse CLI mode that extracts diagnostics from a codebase and writes them to a JSON file — useful for CI pipelines or pre-commit hooks.
| Flag | Description |
|---|---|
--parse / -p | Run in parse mode (required) |
--community-path / -c | Path to the Odoo community source |
--addons / -a | Addon directory path(s) |
--python | Python executable to use |
--output / -o | Output file path (default: output.json) |
Next steps
Configuration File
Learn all available odools.toml settings including diagnostic filters and profile inheritance
Features
Explore what OdooLS can complete, validate, and navigate
Diagnostics Reference
Browse all 50+ diagnostic codes with descriptions and fixes
CLI Reference
Full reference for all command-line flags