Skip to content

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 depends tree 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 ​

  1. Click Odoo Server in the status bar, or run Assista: Update Odoo Server Settings from the Command Palette.

  2. Answer four prompts. Each prompt shows your previous answer, so you can change one value and press Enter on the rest.

    PromptExample
    Odoo server URLhttp://localhost:8069
    Odoo database namemy_database
    Odoo admin email or usernameadmin
    Odoo passwordHidden as you type

    Press Esc at any prompt to cancel without saving.

  3. Check the status bar. It shows Odoo: <host>. Hover over it to see the database, URL and user.

  4. Right-click a module folder in the Explorer and select Assista Odoo > Install Module.

The extension then:

  1. Signs in to the server.
  2. Updates the server's app list, so a module you just created is found.
  3. Looks for a module with the same name as the folder.
  4. 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__.py and __manifest__.py.
  • Install and upgrade run immediately on the server. Use a development database.

Next steps ​

Built by Cybrosys Technologies.