odoo-module-test

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

A command that writes a testing plan for an Odoo module. Odoo modules are extensions that add business features to the Odoo system, and pytest-odoo connects Python tests to an Odoo environment.

In plain words
What is it for?
Use it to specify unit, integration, user-interface, performance, migration, and Odoo-specific scenario tests for a named module.
Why use it?
It helps teams plan tests for business workflows, data integrity, multiple companies, upgrades, and important operations.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions CLAUDE.md.

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 commands/stanleykao72/claude-code-spec-workflow-odoo/odoo-module-test
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-module-test

README.md
[![agentmods](https://agentmods.dev/badge/commands/stanleykao72/claude-code-spec-workflow-odoo/odoo-module-test.svg)](https://agentmods.dev/commands/stanleykao72/claude-code-spec-workflow-odoo/odoo-module-test)
Your own site
<a href="https://agentmods.dev/commands/stanleykao72/claude-code-spec-workflow-odoo/odoo-module-test"><img src="https://agentmods.dev/badge/commands/stanleykao72/claude-code-spec-workflow-odoo/odoo-module-test.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,093 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.1 $0.00000 $0.01093
Opus 5 $0.00000 $0.00547
Sonnet 5 $0.00000 $0.00219
Haiku 4.5 $0.00000 $0.00109

Measured 6d ago against content hash 0db0b3961ce7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

odoo-module-test 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 6d 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-module-test.md · 167 lines

How it starts

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

odoo-module-test - Create Odoo Module Testing Specification

Create comprehensive testing specifications for Odoo modules with pytest-odoo integration and ERP-specific test scenarios.

Usage

/odoo-module-test [module-name] "Test description"

Examples

/odoo-module-test inventory_custom "Run tests for custom inventory module"
/odoo-module-test website_custom "Test custom website module functionality"
/odoo-module-test hr_attendance_mobile "Test mobile HR attendance integration"

What This Command Does

This command creates comprehensive testing specifications for Odoo modules including:

  1. Test Strategy Planning: Unit, integration, and UI testing approach
  2. pytest-odoo Integration: Proper test configuration for Odoo environment
  3. ERP-Specific Scenarios: Multi-company, workflow, and data integrity tests
  4. Performance Testing: Load testing for critical ERP operations
  5. Migration Testing: Upgrade path validation

Instructions

Use the @odoo-spec-task-executor agent to create Odoo module testing specifications:

Create comprehensive Odoo module testing specification:

# Testing Framework Structure

## 1. Test Environment Setup
- **Database Configuration**: Isolated test database setup
- **pytest-odoo Configuration**: Proper pytest.ini and conftest.py
- **Test Data**: Fixtures and sample data for testing
- **Module Dependencies**: Ensure all required modules are loaded

## 2. Unit Testing Strategy
- **Model Tests**:
  - Field validation and constraints
  - Compute method accuracy
  - Onchange trigger validation
  - CRUD operations testing
- **Business Logic Tests**:
  - Method return values
  - Exception handling
  - Edge case validation
  - Data consistency checks

## 3. Integration Testing
- **Cross-Module Testing**:
  - Workflow integration with core modules
  - API endpoint testing
  - Webhook functionality
  - Scheduled action execution
- **Multi-Company Testing**:
  - Data isolation validation
  - Company-specific rule enforcement
  - Cross-company data access restrictions

## 4. User Interface Testing
- **Tour Scripts**:
  - Complete user workflow testing
  - Form submission validation
  - Navigation and menu testing
  - JavaScript widget functionality
- **View Rendering**:
  - Form view layout validation
  - Tree view filtering and search
  - Kanban view drag-and-drop
  - Dashboard and report generation

## 5. Performance Testing
- **Load Testing**:
  - Database query optimization
  - Large dataset handling
  - Concurrent user simulation
  - Memory usage monitoring
- **Benchmarking**:
  - Response time measurement
  - Database query analysis
  - Resource utilization tracking

## 6. Data Migration Testing
- **Upgrade Path Validation**:
  - Data migration script testing
  - Field mapping verification
  - Data integrity preservation
  - Rollback procedure validation

## 7. Security Testing
- **Access Rights Validation**:
  - User permission enforcement
  - Record rule effectiveness
  - API access control
  - Data privacy compliance

## 8. Test Execution Plan
- **Local Development**: Running tests during development
- **Continuous Integration**: Automated testing on code changes
- **Staging Environment**: Full integration testing
- **Production Validation**: Post-deployment smoke tests

Generate specific test cases and implementation code for the target module.

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

Subscribe to this mod's changes

odoo-module-test 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,093 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.