odoo-test-writing

odoo-test-writing is a skill for Claude Code from Viindoo/odoo-mcp-client. It costs 241 tokens per session (7,791 once invoked), scanned A, original, MIT.

A test-writing guide for Odoo that creates executable Python and JavaScript tests for business behavior across Odoo versions. It can also adapt existing tests between major versions.

In plain words
What is it for?
Use it to write Odoo model, form, browser-related, and lightweight performance tests, or to translate tests for another Odoo version.
Why use it?
It helps teams test whether business rules still work, instead of merely matching the current code or a snapshot. It also reduces the manual work of choosing the right Odoo test framework and updating older tests.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the odoo-ai-agents plugin — 51 skills, 8 commands, 26 agents, 8 hooks, 1 MCP server shipped together

Good fit Use it to write Odoo model, form, browser-related, and lightweight performance tests, or to translate tests for another Odoo version.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Viindoo/odoo-mcp-client
Claude Code
/plugin install odoo-ai-agents

Made for: Claude Code.

Or install odoo-ai-agents, the plugin that ships this one along with the rest of its 51 skills, 8 commands, 26 agents, 8 hooks, 1 MCP server.

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-test-writing

README.md
[![agentmods](https://agentmods.dev/badge/skills/viindoo/odoo-mcp-client/odoo-test-writing/github.svg)](https://agentmods.dev/skills/viindoo/odoo-mcp-client/odoo-test-writing)
Your own site
<a href="https://agentmods.dev/skills/viindoo/odoo-mcp-client/odoo-test-writing"><img src="https://agentmods.dev/badge/skills/viindoo/odoo-mcp-client/odoo-test-writing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for odoo-test-writing

Your own site · 80×15
<a href="https://agentmods.dev/skills/viindoo/odoo-mcp-client/odoo-test-writing"><img src="https://agentmods.dev/badge/skills/viindoo/odoo-mcp-client/odoo-test-writing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 241 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,791 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.00241 $0.07791
Opus 5 $0.00120 $0.03896
Sonnet 5 $0.00048 $0.01558
Haiku 4.5 $0.00024 $0.00779

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

Security

Grade A, and why

odoo-test-writing 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.

plugins/odoo-ai-agents/skills/odoo-test-writing/SKILL.md · 264 lines

How it starts

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

Role

QA Engineer / backend developer writing automated tests for Odoo, all supported versions (v8 onward). Enforces the test-behavior principle: every test asserts a business contract, not a snapshot of current implementation.

Out of Scope

  • Static review / quality audit of existing tests - use odoo-code-review
  • Writing the production code under test - use odoo-coding
  • Debugging a test that fails at runtime on a live instance - use odoo-debug
  • Upgrade-safety audit - use odoo-deprecation-audit
  • Running the test suite (including tour/HttpCase) - execution is delegated via NEEDS_NEXT to odoo-instance; authoring (Rounds 0-4) is always in scope regardless of instance availability

Performance / load tests are IN scope (lightweight mode) - author a query-count guard (@tagged('post_install','-at_install') + self.assertQueryCount(...) / with self.assertQueries([...])) or a bounded-time assertion over a seeded volume, grounded via OSM (orm-performance.md idioms). It guards a BEHAVIOR contract ("stays O(1) queries under N records"), never a benchmark. A full external load/stress harness (locust-style concurrency, sustained throughput) is out of scope -> a dedicated perf harness / odoo-perf-audit for diagnosis; state that owner explicitly rather than leaving it unowned.

Translating existing tests across major versions (adapt mode) IS in scope - see "Adapt mode" below.

When to use

Five modes, all governed by the red-before-green contract (${CLAUDE_PLUGIN_ROOT}/snippets/test-first-contract.md):

  • Test-first (before the code). Author a module's failing test BEFORE the implementation, independent from the coder, so the test specifies intended behavior and code is written to green. Used standalone, or when a caller hands off red-first authoring. In the odoo-coding loop the odoo-coder coordinator launches the dedicated odoo-test-writer agent, which invokes THIS skill INLINE to author the RED test - so this capability is the coding loop's test author, reached through that context-isolated agent (coders never author tests).
  • Coverage (after the code). Backfill behavior-protecting tests for existing code; the odoo-code-review test-coverage gate routes here when a CRITICAL/HIGH change ships with no protecting test.
  • Adapt (forward-port test translation). Translate a test file from a source to a target Odoo version (see Adapt mode below). Invoked by the forward-port pipeline (P4a of odoo-forward-port) or directly with a source file + version pair.
  • Performance/load (lightweight). Author a query-count / bounded-time behavior guard for a stated performance contract (boundary in Out of Scope).
  • Tour/HttpCase (full-stack UI acceptance). Write a JS tour registered in web_tour.tours (or the version-appropriate registry) driven by a Python HttpCase.start_tour(...), decorated @tagged('post_install', '-at_install'). Use when acceptance flows span multiple real browser steps needing an HTTP server, or odoo-qa-planner oracle scenarios need browser-level state verification. Do NOT use for non-browser logic (use TransactionCase/Form) or a JS unit with mocked models (use Hoot - no server, no real browser). Authoring (Rounds 0-4) needs no live instance; execution requires --http-port and MUST be delegated per ${CLAUDE_PLUGIN_ROOT}/snippets/test-execution-handoff.md.

Read the full file on GitHub · 264 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 264 lines · 241 tokens per session scan A f620104fccb0

Subscribe to this mod's changes

odoo-test-writing is a skill published in the GitHub repository Viindoo/odoo-mcp-client (7 stars, last pushed 5d ago), licensed MIT. It adds 241 tokens to every session and 7,791 once invoked, about $0.0012 per session on Opus 5. 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-09-03.