Works for record
s, template
s, env.ref()
and other structures.
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.
```shell
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
cargo binstall odoo-lsp
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].
odoo-lsp
on your path~/.config/helix/
on Linuxlanguages.toml
in your Helix runtime folder (create one if none exists) to include these lines:```toml [language-server]
odoo-lsp.command = "odoo-lsp"
[[language]] name = "xml" language-servers = ["odoo-lsp"] roots = [".odoolsp", ".odoolsp.json"]
[[language]] name = "python" roots = [ ".odoolsp", ".odoolsp.json", # add the default roots here ]
language-servers = [ "odoo-lsp", # add the default language servers here "pylsp", # and any you need ] ```
$ROOT/.helix/languages.toml
where $ROOT
is your Odoo modules root to include the above lines.pnpm i
cargo build
Launch Client
Note If encountered errors like
Cannot find module '/xxx/xxx/dist/extension.js'
please try run commandtsc -b
manually, you could refer https://github.com/IWANABETHATGUY/tower-lsp-boilerplate/issues/6 for more details