odoo-bug-analyze

odoo-bug-analyze is a command for Claude Code from stanleykao72/claude-code-spec-workflow-odoo. It costs 0 tokens per session (1,827 once invoked), scanned A, original, MIT.

A command that investigates why a bug occurs in an Odoo module. Odoo is an open-source business management system, and modules are extensions that add or change its features.

In plain words
What is it for?
Use it to inspect project rules, module manifests, dependencies, and Odoo versions before preparing a root-cause analysis and solution plan.
Why use it?
It considers module dependencies, business workflows, Odoo framework limits, and version compatibility when finding the underlying cause.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it to inspect project rules, module manifests, dependencies, and Odoo versions before preparing a root-cause analysis and solution plan.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/stanleykao72/claude-code-spec-workflow-odoo/odoo-bug-analyze
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.

Clone the repo
git clone --depth 1 https://github.com/stanleykao72/claude-code-spec-workflow-odoo

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for odoo-bug-analyze

README.md
[![agentmods](https://agentmods.dev/badge/commands/stanleykao72/claude-code-spec-workflow-odoo/odoo-bug-analyze.svg)](https://agentmods.dev/commands/stanleykao72/claude-code-spec-workflow-odoo/odoo-bug-analyze)
Your own site
<a href="https://agentmods.dev/commands/stanleykao72/claude-code-spec-workflow-odoo/odoo-bug-analyze"><img src="https://agentmods.dev/badge/commands/stanleykao72/claude-code-spec-workflow-odoo/odoo-bug-analyze.svg" alt="Measured on agentmods" height="20"></a>
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 1,827 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.01827
Opus 5 $0.00000 $0.00914
Sonnet 5 $0.00000 $0.00365
Haiku 4.5 $0.00000 $0.00183

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

Security

Grade A, and why

odoo-bug-analyze 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 8d 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.

src/markdown/commands/odoo-bug-analyze.md · 240 lines

How it starts

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

odoo-bug-analyze - Analyze Odoo Module Bug Root Cause

Investigate and analyze the root cause of a reported Odoo module bug with ERP-specific context.

Usage

/odoo-bug-analyze [module-bug-name]

What This Command Does

This command performs deep analysis of Odoo module bugs, considering ERP-specific patterns, module dependencies, and Odoo framework constraints to identify root causes and plan effective solutions.

Instructions

Use the @odoo-spec-task-executor agent to analyze Odoo module bugs:


Perform comprehensive Odoo module bug analysis with ERP-specific context:

# 1. Prerequisites and Context Loading
Load complete Odoo development context:

## Odoo Project Context
- Load .odoo-dev/config.json for project configuration
- Load .odoo-dev/steering/ documents:
  * business-rules.md: ERP business logic and workflow standards
  * technical-stack.md: Odoo technical guidelines and patterns
  * module-standards.md: Custom module development standards

## Module Context
- Identify target module from bug name
- Load module manifest (__manifest__.py) and dependencies
- Understand module's role in the ERP ecosystem
- Check module's Odoo version compatibility

## Bug Report Context
- Load existing bug report from [module-path]/.spec/bugs/[bug-name]/report.md
- Understand reported symptoms and reproduction steps
- Review user impact and business process affected

# 2. Odoo-Specific Investigation Process

## Module Architecture Analysis
Investigate with Odoo ERP context:
- **Model Inheritance Chains**: Check _inherit and _inherits relationships
- **View Hierarchy**: Analyze view inheritance and customizations
- **Security Rules**: Review record rules and access control
- **Data Flow**: Trace data through Odoo ORM and business logic
- **Integration Points**: Check API calls, web controllers, and external integrations

## ERP Pattern Analysis
- **Business Logic Validation**: Check compute methods, constraints, and onchange
- **Workflow Integration**: Analyze state transitions and approval processes
- **Multi-company Impact**: Consider multi-tenancy and data isolation
- **Localization Effects**: Check currency, language, and regional settings
- **Performance Implications**: Analyze database queries and bulk operations

## Odoo Framework Considerations
- **ORM Usage**: Check for proper use of Odoo ORM methods
- **Transaction Handling**: Analyze commit/rollback patterns
- **Caching Issues**: Check for cache invalidation problems
- **Module Load Order**: Verify dependency loading sequence
- **API Compatibility**: Check for deprecated method usage

# 3. Root Cause Investigation

## Technical Root Cause Analysis
Focus on Odoo-specific failure patterns:
- **Inheritance Conflicts**: Multiple modules modifying same functionality
- **Database Schema Issues**: Field conflicts, constraint violations
- **Security Rule Conflicts**: Overlapping or contradicting access rules
- **View Rendering Problems**: Template inheritance and XML conflicts
- **Business Logic Errors**: Incorrect compute methods or domain filters

## Integration Impact Analysis
- **Dependent Module Effects**: How does this bug affect other modules?
- **Core Odoo Integration**: Does this conflict with standard Odoo behavior?
- **Third-party Module Compatibility**: Conflicts with community/enterprise modules
- **Upgrade Path Impact**: Will this affect future Odoo version upgrades?

## Business Process Impact
- **Workflow Disruption**: Which business processes are affected?
- **Data Integrity**: Is there risk of data corruption or loss?
- **User Experience**: How does this affect end-user operations?
- **Reporting Impact**: Does this affect business intelligence or reporting?

# 4. Solution Strategy Planning

## Fix Approach Design
Plan Odoo-appropriate solutions:
- **Inheritance Strategy**: Use proper _inherit patterns to avoid conflicts
- **Override vs Extension**: Determine whether to override or extend functionality
- **Migration Considerations**: Plan for future Odoo version compatibility
- **Testing Strategy**: Plan pytest-odoo integration and coverage

## Risk Assessment
- **Module Stability**: Impact on existing module functionality
- **Data Migration**: Need for data updates or corrections
- **Performance Impact**: Query performance and resource usage
- **Deployment Considerations**: Production deployment strategy

# 5. Create Analysis Document
Create comprehensive analysis in [module-path]/.spec/bugs/[bug-name]/analysis.md:

Read the full file on GitHub · 240 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. 8d ago First seen · 240 lines · 0 tokens per session scan A dce5717ddcfc

Subscribe to this mod's changes

odoo-bug-analyze is a command published in the GitHub repository stanleykao72/claude-code-spec-workflow-odoo (44 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,827 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.