Completion, definition and references for models, XML IDs and model fields
env.ref() and other structures.
Browse models and XML records as workspace symbols
For more features check out the wiki.
The VSCode extension handles downloading the latest releases automatically; other editors need
odoo-lsp on the path.
Nightly binaries are also available for major platforms, please check Releases for the latest downloads.
wget -qO- "https://github.com/Desdaemon/odoo-lsp/releases/download/nightly-$(date +'%Y%m%d')/odoo-lsp-x86_64-unknown-linux-musl.tgz" | \
tar --transform 's/^dbt2-0.37.50.3/dbt2/' -xvz
# With cargo-binstall
cargo binstall odoo-lsp
# Install from source
cargo install odoo-lsp
For usage instructions please check the wiki (work in progress).
odoo-lsp is available from the Visual Studio Marketplace and the
Open VSX Registry. Alternatively, you can grab the latest nightly builds from Releases.
- Ensure that you have
odoo-lsp on your path
- Determine your Helix runtime folder, e.g.
~/.config/helix/ on Linux
languages.toml in your Helix runtime folder (create one if none exists) to include these lines:
# Update the path to match your setup
odoo-lsp.command = "odoo-lsp"
name = "xml"
language-servers = ["odoo-lsp"]
roots = [".odoo_lsp", ".odoo_lsp.json"]
name = "python"
roots = [
# add the default roots here
# Order is important here
language-servers = [
# add the default language servers here
# and any you need
- Alternatively, modify
$ROOT is your Odoo modules root to include the above lines.
- In VSCode, press F5 or change to the Debug panel and click
If encountered errors like
Cannot find module '/xxx/xxx/dist/extension.js'
please try run command
tsc -b manually, you could refer https://github.com/IWANABETHATGUY/tower-lsp-boilerplate/issues/6 for more details