wpmoo-org/odoo-skills/odoo-testing
Claude Code and agent skill by wpmoo-org/odoo-skills
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Use when adding, fixing, or running tests for Odoo addons, including Python tests, JS tests, security assertions, install/update checks, regressions, and OCA-compatible verification.
Install
npx vskill@latest install wpmoo-org/odoo-skills/odoo-testingSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as wpmoo-org/odoo-skills/odoo-testing.
Odoo Testing
Use this skill for Odoo addon test work. Load the target odoo-13 through odoo-19 skill before using version-specific test APIs, frontend test syntax, or command options.
Test selection
Choose the smallest test that proves the behavior:
- Business logic: Python tests under
tests/. - Access control: users, groups, ACLs, record rules, and forbidden operations.
- Views/data: install and update checks.
- Controllers: authentication, authorization, CSRF, ownership, and input
validation.
- JavaScript: Odoo frontend unit, tour, or HOOT tests according to version.
- Migration or porting: install old state, update module, verify target state.
Python test rules
- Put tests in
tests/test_*.pyand import them fromtests/__init__.py. - Use
TransactionCasefor most addon behavior. - Use savepoint-style classes only when compatible with the target version and
existing repository style.
- Build records through the ORM, not raw SQL.
- Use tagged tests when the repository separates at-install, post-install, slow,
or external-service tests.
- Mock external services, mail delivery, time, and network calls.
- For bug fixes, add a regression test that fails without the fix when practical.
Security tests
Always test both allowed and forbidden paths when access behavior changes:
- User without the group cannot read/write/create/unlink restricted records.
- User with the group can perform the intended workflow.
- Record rules enforce ownership, company, website, portal, or team boundaries.
- Public controllers reject records outside the current user's scope.
Running tests
Prefer repository wrappers. Common raw commands:
When WPMoo tooling is present:
Use a clean database for install/update verification. Do not treat a running developer database as proof that a module installs cleanly.
Troubleshooting
- Import errors usually mean missing
__init__.pyimports or undeclared
manifest dependencies.
- Missing external IDs usually mean data load order is wrong.
- Access errors during install often mean groups or ACLs load too late.
- Flaky UI tests usually need deterministic waits for visible Odoo state, not
arbitrary sleeps.
Done criteria
- Relevant tests are added or updated.
- Install and update paths were checked when manifests, data, migrations, or
views changed.
- Test commands and any skipped verification are reported clearly.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/odoo-testing/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wpmoo-org/odoo-skills/odoo-testing)