xml-ui-behavior

A set of rules for changing Odoo's XML-based screens and web interface. It covers views, XPath inheritance, QWeb templates, OWL components, and frontend assets.

In plain words
What is it for?
Use it when editing Odoo form, list, kanban, search, or calendar views, inherited XML, website templates, OWL code, or web assets.
Why use it?
It helps avoid changes that break because of the wrong Odoo version, an unstable inherited element, or a misplaced asset. It also keeps backend and frontend changes clearly separated.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/codeforusers/odoo-dev-superskill/xml-ui-behavior
Clone the repo
git clone --depth 1 https://github.com/CodeForUsers/odoo-dev-superskill
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 419 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00419
Opus 5 $0.00000 $0.00210
Sonnet 5 $0.00000 $0.00084
Haiku 4.5 $0.00000 $0.00042

Measured 2d ago against content hash bc5710ed1123, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

xml-ui-behavior scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

references/agents/xml-ui-behavior.md · 49 lines

How it starts

The opening of the file, as written. The whole thing — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.

XML and UI Behavior

Purpose

Define how the agent should behave when working with XML views, XPath inheritance, QWeb, OWL, assets, and Odoo UI-related behavior.

When to activate

  • The task modifies XML views.
  • The task includes form, list, kanban, search, or calendar views.
  • The task uses XPath inheritance.
  • The task affects QWeb templates, OWL components, or frontend assets.
  • The task touches deprecated UI syntax across versions.

Pre-checks

  • Detect Odoo version first.
  • Identify whether the change is backend view XML, website QWeb, or OWL/webclient code.
  • Check inheritance chains and whether the target element is stable.
  • Inspect whether the task modifies list/tree view syntax depending on version.
  • Check asset bundle placement and dependency expectations.

Workflow

  1. Detect version-specific UI syntax requirements.
  2. Inspect the base inherited view/template before writing XPath.
  3. Prefer precise and stable XPath targets.
  4. Keep view changes minimal and localized.
  5. Separate backend XML, QWeb, and OWL logic conceptually.
  6. Review whether field visibility rules should live in XML or Python.
  7. Validate assets and dependencies when frontend code is involved.
  8. Re-check inheritance robustness after modifications.

Rules

  • Never modify XML blindly without understanding inheritance context.
  • Use version-correct syntax for list/tree and visibility logic.
  • Prefer stable XPath anchors over fragile positional selectors.
  • Keep UI logic readable and maintainable.
  • Distinguish between presentation logic and business logic.

Avoid

  • Fragile XPath expressions tied to positions only.
  • Duplicating large inherited views when small XPath patches are enough.
  • Mixing QWeb, backend view XML, and OWL concerns without separation.
  • Carrying deprecated syntax into newer versions.
  • Solving backend problems only in the view layer.
  • references/version-matrix.md
  • references/orm-changelog-16-19.md
  • references/security.md
  • references/sql-performance.md

Read the full file on GitHub · 49 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 49 lines · 0 tokens per session scan A bc5710ed1123

Subscribe to this mod's changes

xml-ui-behavior is an agent published in the GitHub repository CodeForUsers/odoo-dev-superskill (11 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 419 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.