vscode-odoo
vscode-odoo copied to clipboard
Visual Studio Code extension for Odoo
Odoo Framework Integration for Visual Studio Code
Boost your productivity and make your life easier as an Odoo developer
This extension is in the early stages of development. A lot of features are missing compared to the PyCharm plugin for Odoo.
Features
- Resolve
odoo.addons.*
imports for built-in addons and custom addons. - Fully understand model inheritance mechanisms.
- Code completion and navigation for module names, model names, field names, XML IDs,...
Installation
- Install the Odoo IDE extension from VSCode Marketplace.
- Install PyDev.Debugger plugin for Odoo to improve Odoo debugging.
Notes
- The Odoo IDE extension will automatically set
Python Language Server
toNone
in settings for Odoo workspaces because this extension uses a custom language server for the Odoo framework. If you have the Pyright extension installed, you should also disable it. Otherwise, you will have multiple language servers running with the same features that waste your system resources. - The Odoo IDE extension is built on top of Pyright so it inherits all features of Pyright.
- Depending on how you structure your projects, the Odoo IDE extension may not be able to resolve odoo imports. You can manually add the Odoo source code and your custom addons paths to settings as described in the import resolution documentation.
- Both the Odoo source code and your custom addons must be added to your VSCode workspace for the Odoo IDE extension to work as expected.
Screenshots