odoo-model-inspector

Analyze Odoo modules via AST parsing to reveal model inheritance and fields.

3|5|Updated Oct 21, 2025
One-click install
npx skills add https://github.com/straga/ai-assistant-skills --skill odoo-model-inspector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: odoo-model-inspector
Source: https://github.com/straga/ai-assistant-skills/tree/main/odoo/odoo_model_inspector
Command: npx skills add https://github.com/straga/ai-assistant-skills --skill odoo-model-inspector

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually tracing Odoo model inheritance, fields, and methods across multiple modules is a time-consuming and error-prone task. This skill automates that complex analysis, providing a clear, comprehensive overview of any Odoo model's structure.

Core Features & Use Cases

  • Full Inheritance Chain: Get a complete "who stands on whom" view of any Odoo model, including all inherited fields and methods from all contributing modules.
  • Field & Method Discovery: Quickly identify all fields and methods available on a model, and precisely which module defines or extends them.
  • Use Case: Before adding a new field delivery_date to sale.order, use this skill to instantly check if it already exists anywhere in the inheritance chain, preventing conflicts and saving valuable development time.

Quick Start

Analyze the 'sale.order' model

uv run python .claude/skills/odoo_model_inspector/inspect.py
--model sale.order
--context-module sale

Frequently Asked Questions about odoo-model-inspector

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I trace Odoo model inheritance across multiple modules?

Model inheritance tracing reveals the complete chain of parent models and which modules contribute fields and methods to a given model. This skill maps that chain automatically using AST parsing, showing you every ancestor and their contributions without manual code inspection across multiple files.

Can I check if a field already exists in an Odoo model before adding it?

Yes. This skill scans the full inheritance chain and per-module field definitions to reveal all existing fields on any model. Before adding a new field like `delivery_date` to `sale.order`, you can instantly verify it doesn't already exist elsewhere in the inheritance tree, preventing conflicts.

How do I analyze Odoo model structure without running code?

AST parsing lets you inspect model definitions, fields, methods, and dependencies by reading source code directly rather than executing it. This approach satisfies zero-code-execution constraints while producing complete inheritance maps and machine-readable JSON output.

What information does an Odoo model analysis reveal?

Model analysis produces the full inheritance chain, per-module field and method listings, and dependency relations. You get precise visibility into which module defines or extends each component, plus a complete picture of what's available on your model across all contributing modules.

Can I scope model analysis to a specific module in Odoo?

Yes. You can analyze a model across all modules or within an optional context module to narrow the scope. This lets you focus on inheritance and fields within a particular module's namespace when tracing complex model hierarchies.