Package Control

The official Sublime Text package manager.

Odoo

Sublime text syntax highlighting for QWeb templates, OWL templates and views.

By Mr7F
Created April 22, 2025, last updated August 2, 2026.

JulJunMayAprMarFebJan Dec2025 NovOctSepAugJul 2026-W31 | installs: 2 | removals: 0 | upgrades: 1 2026-W31 | installs: 2 | removals: 0 | upgrades: 1 2026-W31 | installs: 2 | removals: 0 | upgrades: 1 2026-W30 | installs: 0 | removals: 0 | upgrades: 0 2026-W30 | installs: 0 | removals: 0 | upgrades: 0 2026-W30 | installs: 0 | removals: 0 | upgrades: 0 2026-W29 | installs: 0 | removals: 0 | upgrades: 0 2026-W29 | installs: 0 | removals: 0 | upgrades: 0 2026-W29 | installs: 0 | removals: 0 | upgrades: 0 024 WeeklyInstalls 024 WeeklyUpgrades 2026-W31 | upgrades: 1 1.0.3 / 1.0.2 2026-W29 | upgrades: 0 1.0.1 / 1.0.0
Installations: 2 in total
Installations minus removals
Upgrades

Links

Versions

1.0.3 ·
2026-08-02 15:48

More

Sublime - Odoo

Snippets

Add some snippets for common code

Check the snippet folder to see what's available.

Syntax highlighting

Syntax highlighting for QWeb templates, OWL templates, views, and access CSV files.

Choose "XML - Odoo", and it will automatically choose the right syntax

It highlight JS template inside Python template (eg template of kanban views)

It also highlight mail templates and "backend" templates.

And ir.model.access.csv

With this syntax highlighting comes the symbols, you can jump to view / component template with ctrl+r / ctrl+shift+r

Go To Definition

You can configure key bind to make "go to definition" work in views / OWL components (it uses sublime text symbols indexes, and so many results can be returned, they are sorted with a heuristic, similar filenames are displayed first).

// Standard sublime text `goto_definition`
{ "keys": ["primary+d"], "command": "goto_definition" },
// When the LSP has the feature
{
  "keys": ["primary+d"],
  "command": "lsp_symbol_definition",
  "context": [
    { "key": "lsp.session_with_capability", "operand": "definitionProvider" },
    { "key": "auto_complete_visible", "operand": false }
  ]
},
// Custom Odoo "Go To Definition"
{
  "keys": ["primary+d"],
  "command": "goto_definition_odoo_xml",
  "context": [{ "key": "selector", "operator": "equal", "operand": "text.xml.odoo-view, text.xml.owl, text.xml.odoo" }]
},

Same for goto_reference.

{ "keys": ["primary+shift+r"], "command": "goto_reference" },
{
  "keys": ["primary+shift+r"],
  "command": "goto_reference_odoo_xml",
  "context": [{ "key": "selector", "operator": "equal", "operand": "text.xml.odoo-view, text.xml.owl, text.xml.odoo" }]
},

Commands

Please install ripgrep to use most of commands (they are use instead of slow python code to get the list of modules, list of models, etc)

sudo apt install ripgrep

You can automatically create Python inherit, JS component, search a view and overwrite it, etc

Type "Odoo" in the command palette to see what's available.

https://youtu.be/lkYhHB83vJ8

Auto-complete

TODO

Results

Packages