Odoo Shortcuts provides configurable keyboard shortcuts for common actions.
| Action | Windows/Linux | Mac |
|---|---|---|
| New Addon | Ctrl+K Ctrl+A |
Cmd+K Cmd+A |
| Debug Odoo | Ctrl+K Ctrl+N |
Cmd+K Cmd+N |
| Debug JavaScript | Ctrl+K J |
Cmd+K J |
| Start Odoo Server | Ctrl+Shift+D |
Cmd+Shift+D |
| Action | Windows/Linux | Mac |
|---|---|---|
| Filter Addons | Ctrl+K Ctrl+F |
Cmd+K Cmd+F |
| Open OWL definition | Ctrl+Shift+D |
Cmd+Shift+D |
Ctrl+K Ctrl+S / Cmd+K Cmd+SSearch for “Odoo Shortcuts”
Click on the command you want to add a shortcut to
// keybindings.json
[
{
"command": "odooShortcuts.createNewModelCommand",
"key": "ctrl+shift+m",
"mac": "cmd+shift+m",
"when": "editorTextFocus"
}
]
Shortcuts are saved in keybindings.json:
%APPDATA%\Code\User\keybindings.json~/Library/Application Support/Code/User/keybindings.json~/.config/Code/User/keybindings.json[
{
"command": "odooShortcuts.createNewAddonCommand",
"key": "ctrl+shift+a",
"mac": "cmd+shift+a",
"when": "editorTextFocus"
},
{
"command": "odooShortcuts.createViewsCommand",
"key": "ctrl+shift+v",
"mac": "cmd+shift+v",
"when": "editorLangId == python"
},
{
"command": "odooShortcuts.debugOdooCommand",
"key": "ctrl+shift+d",
"mac": "cmd+shift+d"
},
{
"command": "odooShortcuts.debugJSCommand",
"key": "ctrl+k j",
"mac": "cmd+k j"
},
{
"command": "odooShortcuts.addon.filter",
"key": "ctrl+k ctrl+f",
"mac": "cmd+k cmd+f",
"when": "view == odooAddonsExplorer"
}
]
Shortcuts can be activated only in certain contexts:
| Condition | Description |
|---|---|
editorTextFocus |
Editor has focus |
editorLangId == python |
Python file active |
editorLangId == xml |
XML file active |
view == odooAddonsExplorer |
Addon explorer active |
resourceExtname == .py |
.py file open |
Verify your shortcut doesn’t conflict with others:
“Chords” (key sequences) are useful:
{
"key": "ctrl+k ctrl+a" // Press Ctrl+K, then Ctrl+A
}
You can have workspace-specific shortcuts in .vscode/keybindings.json.
Ctrl+K Ctrl+S (Windows/Linux)Cmd+K Cmd+S (Mac)This opens the shortcuts editor where you can:
when conditionIf another shortcut has priority:
Next: FAQ