odoo-shortcuts

Odoo Explorer

The Odoo Explorer provides a visual interface to navigate and manage your Odoo addons directly from VS Code.

Odoo Explorer Overview

🌳 Explorer Structure

The panel is divided into four sections:

1. Custom Addons

Shows addons from your workspace and custom repositories.

Custom Addons View

Available Operations:

2. Odoo Core (Read-Only)

Shows Odoo Core addons detected in configured paths.

3. Odoo Enterprise (Read-Only)

Shows Odoo Enterprise addons if available.

Core and Enterprise View

4. Configuration Files

Shows .conf configuration files found.

Operations:

Configuration Files

🎯 Explorer Commands

Title Bar

Icon Command Description
πŸ”„ Refresh Update addons view
πŸ” Filter Filter addons by name
❌ Clear Filter Clear current filter
πŸ‘οΈ Show All Hidden Show hidden repositories
πŸ“ New File Create new file
πŸ“‚ New Folder Create new folder

Context Menu

Right-click on any item for:

Addons/Repositories:

Files:

Search in Folder

Folders:

βš™οΈ Configuration

Odoo Server Paths

{
  "odooShortcuts.odooServerPaths": [
    "/home/user/odoo",
    "/home/user/enterprise"
  ]
}

Detection Patterns

Core Addons:

{
  "odooShortcuts.coreAddonPatterns": [
    "/odoo/addons/",
    "/odoo/odoo/addons/",
    "/openerp/addons/"
  ]
}

Enterprise:

{
  "odooShortcuts.enterpriseAddonPatterns": [
    "/enterprise/",
    "/odoo/enterprise/"
  ]
}

πŸ“ Icons and Types

The explorer shows different icons by type:

πŸ” Filters

Filter Addons

  1. Click the πŸ” icon in the title bar
  2. Select the addons you want to see
  3. Other addons are temporarily hidden

Filter Addons

Hidden Repositories

Hide/Show Repositories

πŸš€ Keyboard Shortcuts

Action Shortcut
Update addons Configurable in VS Code
Filter addons Ctrl+K Ctrl+F / Cmd+K Cmd+F
Create file Context menu
Create folder Context menu

πŸ’‘ Tips

1. Drag & Drop

The explorer supports drag and drop operations within the view.

2. Multi-selection

Use Ctrl+Click or Cmd+Click to select multiple items.

3. Command Integration

From the context menu you can directly access:

4. Automatic Synchronization

If you enable odooShortcuts.autoRefresh, the explorer updates automatically when file system changes are detected.

πŸ› Troubleshooting

My addons don’t appear

  1. Verify they have __manifest__.py
  2. Configure odooShortcuts.odooServerPaths
  3. Use the β€œRefresh” command

Odoo Core/Enterprise not detected

  1. Verify paths in odooServerPaths
  2. Check patterns in coreAddonPatterns and enterpriseAddonPatterns
  3. Ensure directories exist

Slow performance

If you have many addons:


Next: LSP and IntelliSense