How to use - odoo/odoo-ls GitHub Wiki
Installation
The language server requires an extension that will provide it in your IDE. Follow the guide matching to your IDE:
VsCode and VsCodium
The best way to install it is via the marketplace. Open your vscode, and go on the left bar. Click on Extensions
. Search for the extension Odoo
and take the one published by Odoo. You can choose between the release and the pre-release version. The second one can be unstable, but will provide more features than the first one.
Note on manual installation
You can install your installation manually if you downloaded it from the marketplace or build it yourself.
As for the marketplace solution, go in your extensions
tab, and click on the three dots on the top of the extensions window, then choose install from vsix
. Choose your vsix file you want to install. That's it !
Setup your extension
VsCode
The extension work by loading a specific Odoo version, then analyze your code with it. To create, change or delete your configurations, select the Odoo button
On the dropdown that will be displayed, you can choose the configuration you want to use on the actual workspace
You can edit an existing configuration by clicking on the wheel
If you edit or create a configuration, you should see this page
that will allow you to specify the details about your configuration. Choose a name, give your path to Odoo community and to your python executable.
Notes:
- You can choose a python that is in a virtual environment, it will be used in it.
- You can add all your addons path in the last box. Put the same directories you put in your command line.
Use it
To use the extension, write your code ! The different features will activate by themselves when needed. See Features