Odoo connectivity
Connect the extension to a running Odoo server to install or upgrade a module from the Explorer, without opening the Apps menu. The connection also shows installed modules in the Model Inheritance Graph.
What you can do
- Install a module on the connected server.
- Upgrade a module that is already installed, after you confirm.
- Show which modules are installed in the Model Inheritance Graph.
- Show a module's
dependstree with Module Dependency Graph. Right-click a module folder and select Assista Odoo > Module Dependency Graph. Click a module to open its manifest, or download the graph as HTML. It needs an internet connection.
The connection uses Odoo's XML-RPC API.
Get started
Click Odoo Server in the status bar, or run Assista: Update Odoo Server Settings from the Command Palette.
Answer four prompts. Each prompt shows your previous answer, so you can change one value and press Enter on the rest.
Prompt Example Odoo server URL http://localhost:8069Odoo database name my_databaseOdoo admin email or username adminOdoo password Hidden as you type Press Esc at any prompt to cancel without saving.
Check the status bar. It shows
Odoo: <host>. Hover over it to see the database, URL and user.Right-click a module folder in the Explorer and select Assista Odoo > Install Module.
The extension then:
- Signs in to the server.
- Updates the server's app list, so a module you just created is found.
- Looks for a module with the same name as the folder.
- Asks you, in a dialog, whether to install it, or to upgrade it if it is already installed. Select Install or Upgrade to continue.
The folder name must match the module's technical name, and the module must be in the server's addons path.
Tips and limits
WARNING
The server settings, including the password, are stored as plain text in VS Code's storage for this workspace. Use a development account.
- Make sure the server is running and reachable from your computer before you connect.
- Install Module works on a module folder that contains both
__init__.pyand__manifest__.py. - Install and upgrade run immediately on the server. Use a development database.