Skip to content

Frontend Files

rafageist edited this page Nov 30, 2026 · 1 revision

Frontend Files

XML, QWeb and HTML, JavaScript and OWL, CSS and SCSS, in the same editor and Explorer as the Python.

An XML view's Outline, F12 from its inherit_id to the view it extends, Alt+Left back, then an OWL component

Outline

  • XML: R records with their model, V views with the view they inherit, X actions, U menus, T templates (<template> and t-name).
  • JavaScript: O OWL components with their static template, classes and methods, functions, P patches, + registry additions.
  • CSS and SCSS: S selectors, $ variables, @ mixins and at-rules.

An XML view's Outline

An OWL component's Outline

Odoo references

F12 (or Ctrl+click) in XML, HTML and JavaScript follows an inherit_id, ref, parent, action, groups, t-call, t-inherit, ref('...') inside an eval, or a component's static template to its declaration. F12 on a manifest's data, demo or assets entry opens its file; a glob lists the files it matches. Alt+Left comes back.

Modules are looked up in the current file's addons folder, the open folder and the configured Odoo roots. What is not there (a module not found, an id not declared, a bundle, a dynamic t-call) is said in a message, never guessed.

The demo addons in the repository's tests/fixtures/addons (turbodoo tests/fixtures/addons) show all of it.

Limits

SCSS is coloured with the CSS grammar; <script> and <style> inside HTML are not coloured; the JavaScript outline reads top-level definitions, not a full parse; files over 1 MB (built bundles) get no outline. No JavaScript or XML language server is used yet.

Clone this wiki locally