Odoo Code Tracer logo

Odoo Code Tracer

Community
mart337i
odoo-code-tracer

Trace Odoo execution flow from an entry point through controllers, button actions, cron jobs, model methods, overrides, computes, onchanges, constraints, database operations, security checks, and side effects. Use before implementation, during debugging, impact analysis, performance review, or code review when behavior depends on Odoo call chains.

Overview

Publishermart337i
Repositoryodoo-skills
Skill nameodoo-code-tracer
Stars
61
Forks
15
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by mart337i on GitHub. Read the source before you install it.

Installation

Install the Odoo Code Tracer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/mart337i/odoo-skills/tree/main/skills/odoo-code-tracer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mart337i/odoo-skills.git /tmp/odoo-skills
mkdir -p .claude/skills
cp -r /tmp/odoo-skills/skills/odoo-code-tracer .claude/skills/odoo-code-tracer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Odoo Code Tracer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Odoo Code Tracer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Odoo Code Tracer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Odoo Code Tracer

Use this skill to map how Odoo code actually executes. Trace only what you can verify in code. If a path is uncertain, mark it as uncertain and explain what evidence is missing.

First Move

Identify the starting point:

  • HTTP route or controller
  • form/list button action
  • server action or automated action
  • cron job
  • ORM method called by another addon
  • compute, onchange, constraint, inverse, or create/write/unlink hook
  • report render
  • OWL/web client action calling backend code
  • external webhook or integration callback

Detect the target Odoo version. If a version-specific reference exists, consult it before tracing version-sensitive behavior:

  • Odoo 17: odoo-17.0
  • Odoo 18: odoo-18.0
  • Odoo 19: odoo-19.0
  • Odoo 20: odoo-20.0

If $ODOO_SOURCE is set, inspect local framework code for controller dispatch, ORM behavior, decorators, web client actions, assets, tests, and version-specific execution details.

Tracing Process

  1. Locate the entry point with file and line reference.
  2. Follow the direct method call chain.
  3. Follow inheritance and super() calls through parent implementations.
  4. Check decorators and implicit triggers: @api.depends, @api.constrains, @api.onchange, inverse methods, @api.ondelete, create/write/unlink overrides.
  5. Follow XML wiring: buttons, actions, menus, reports, cron records, server actions, and external IDs.
  6. Follow frontend wiring when relevant: asset bundle, JS module, registry entry, service call, RPC/ORM call, template event.
  7. Record database operations: search, browse, read, read_group, create, write, unlink, direct SQL, savepoints, locks.
  8. Record side effects: chatter, emails, notifications, activities, reports, attachments, external API calls, queue jobs, bus events.
  9. Record security checks: auth mode, ACLs, record rules, groups, domains, company filters, sudo() boundaries.
  10. Mark exit points and returned actions/data.

What To Watch For

  • N+1 queries from searches, browses, reads, creates, writes, or unlinks inside loops.
  • Hidden side effects from computed fields, constraints, onchange methods, mail mixins, activities, and automation.
  • Unsafe sudo() that bypasses ownership, company, portal, or public-user boundaries.
  • Fragile XML linkage through renamed methods, missing external IDs, or version-specific view syntax.
  • Transaction hazards from caught database exceptions without savepoints.
  • Business rules split across views, onchanges, controllers, and scheduled actions.

Common Entry Patterns

Entry TypeWhere To LookFollow Next
Controllercontrollers/*.py, @http.routerequest env, auth, params, model calls
ButtonXML <button name="..." type="object">model method, overrides, returned action
CronXML/data ir.cron recordmodel method, batching, side effects
Server actionXML/data ir.actions.servermodel, code block, target records
Computefield compute="...", @api.dependsdependencies, store behavior, recompute path
Onchange@api.onchange, form view fieldsUI-only behavior, persisted equivalent
Constraint@api.constrains, SQL constraintsvalidation path and exception behavior
Reportir.actions.report, QWeb templateaccess, render context, attachments
OWL/RPCstatic/src, services, registriesbackend route/model method

Output Format

markdown
## Code Execution Trace

### Entry Point
- Type: Controller / Button / Cron / Server action / Compute / Onchange / Constraint / Report / OWL / Other
- Location: `path/to/file.py:XX`
- Trigger: user action, scheduler, external request, field access, module update, etc.

### Flow
```text
ENTRY: `path/to/file.xml:XX` button/action/route
-> `models/foo.py:42` Foo.action_do_thing()
   -> `models/foo.py:63` Foo._prepare_values()
   -> `models/bar.py:18` Bar.create()
   -> side effect: message_post()
RETURN: `ir.actions.act_window`
```

### Detailed Trace
- `path/to/file.py:XX` method name, decorators, inputs, key branches.
- `path/to/parent.py:XX` parent implementation reached via `super()`.
- `path/to/data.xml:XX` cron/action/report/XML ID involved.

### Database Operations
- `search`: model/domain/count if known.
- `create/write/unlink`: model/count if known.
- Direct SQL/savepoints/locks: state exact location.
- N+1 risk: yes/no/uncertain with reason.

### Security Notes
- Auth mode, ACL/record-rule expectations, groups, company behavior, `sudo()` boundaries.

### Side Effects
- Emails, chatter, activities, attachments, reports, external calls, queue jobs, bus events.

### Uncertain Paths
- State what could not be proven and what file/source would resolve it.

Response Rules

  • Always include file/line references for traced code.
  • Trace inheritance and super() explicitly.
  • Do not assume a framework path if local source is available; inspect it.
  • Do not run Odoo commands that touch a database or service without user confirmation.
  • If the trace reveals review findings, compose with odoo-code-review.

Frequently asked questions

What does the Odoo Code Tracer AI skill do?

Trace Odoo execution flow from an entry point through controllers, button actions, cron jobs, model methods, overrides, computes, onchanges, constraints, database operations, security checks, and side effects. Use before implementation, during debugging, impact analysis, performance review, or code review when behavior depends on Odoo call chains.

Why use Odoo Code Tracer on TypingMind?

Because you install it once and use it with any model. Odoo Code Tracer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Odoo Code Tracer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mart337i/odoo-skills/tree/main/skills/odoo-code-tracer. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Odoo Code Tracer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Odoo Code Tracer?

As many as you like. As long as a model supports skills, you can use Odoo Code Tracer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Odoo Code Tracer AI skill free?

It is published on GitHub by mart337i. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇