Skip to content
Back to skills

Odoo Dev

ASecurity

MANDATORY for customizations. High-level technical expertise in Odoo's customization engine, covering Server Actions, Automated Rules, and Odoo Studio modifications.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentspythonapidatabase

Works with

  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add actinon-com/brass-monkey --skill odoo-dev --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Odoo Dev?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Odoo Dev
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/actinon-com-odoo-dev/badge)](https://www.skillsdirectory.com/skills/actinon-com-odoo-dev)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: odoo-dev
description: MANDATORY for customizations. High-level technical expertise in Odoo's customization engine, covering Server Actions, Automated Rules, and Odoo Studio modifications.
---
# Skill: Odoo Development & Customization

This skill provides the agent with high-level technical expertise in Odoo's customization engine, covering Server Actions, Automated Rules, and Odoo Studio modifications.

## Core Mandates

### 1. Snapshot Awareness (Technical Discovery)
- **Mandate:** The `dev-fields.json` resource is a **snapshot** of common technical models.
- **Verification:** If troubleshooting an error related to a custom module or a specific Odoo version, you **MUST** call `inspect_model` to retrieve the current, live schema. Custom fields added via Studio or third-party code will only be visible via live introspection.

### 2. Identify Customizations (Odoo Studio)
Before troubleshooting or proposing changes, the agent must identify existing low-code customizations:
- **Custom Fields:** Look for fields prefixed with `x_` (e.g., `x_studio_customer_type`).
- **Custom Models:** Look for technical models prefixed with `x_` (e.g., `x_service_agreement`).
- **Custom Views:** Studio modifications are stored in the database (`ir.ui.view`). Check for views with a name containing "studio" or an `inherit_id` pointing to a standard view.

### 2. Server Actions (`ir.actions.server`)
- **Purpose:** Execute Python code, update records, or trigger multi-step workflows via the UI.
- **Mandate:** When writing Python code in a Server Action, ensure all variables (`env`, `model`, `record`, `records`, `time`) are used correctly. Avoid long-running loops or operations that could cause database locks.
- **HTML Communication:** If using `message_post` within a Server Action to send HTML, remember to pass `body_is_html=True` to prevent escaping.

#### Running one (`execute_action`)
- **Inspect before you run.** A server action is a *mutable data row*, so its name tells you nothing
  about its effect. ALWAYS call `execute_action` with `dry_run: true` first for an action you have
  not run before: the report expands the full `child_ids` tree and classifies every step.
- **Unsafe states are blocked by default.** `code` (arbitrary Python), `webhook`, `mail_post` and
  `sms` require `acknowledge_unsafe: true`. Before setting it, explain to the user in your message
  exactly what the action does — for a `code` action, quote the Python from the dry-run report.
- **A `multi` action is only as safe as its children.** The classification covers the whole
  expanded tree, so a wrapper containing one Python step is treated as Python.
- **Targets are explicit.** Pass `ids`. An empty recordset is refused unless you set
  `allow_empty_recordset: true`, because many actions fall back to acting on everything in scope.
- **Follow-up actions are inert.** If the action returns another action, it is handed back as data
  and is NOT executed. Decide deliberately whether to act on it.
- **Snapshots are honest.** Only declarative states (`object_write`, `object_create`, `update`)
  can be snapshotted. For anything else the audit entry records that no before-state was capturable
  rather than implying nothing changed — so recovery planning is on you.

### 3. Automated Rules (`base.automation`)
- **Purpose:** Automatically trigger Server Actions based on specific events.
- **Triggers:**
    - `on_create`: When a record is first created.
    - `on_write`: When a record is updated (can be restricted to specific fields).
    - `on_time`: Based on a date field (e.g., 2 hours after a deadline).
- **Mandate:** Always check `filter_pre_domain` and `filter_domain` to understand exactly which records will trigger the rule.

### 4. Technical Troubleshooting Workflow
1. **Logs:** Check `ir.logging` for tracebacks or server-side error messages.
2. **Customizations:** Verify if an Automated Rule or a Studio field is causing the unexpected behavior.
3. **Environment:** Use the `env` variable in Server Actions to inspect related records or bypass access rights if absolutely necessary (using `sudo()`).

## Available Resources
- `dev-logic.md`: Deep-dive into Odoo's Python execution context, Studio mechanics, and module anatomy.
- `dev-fields.json`: Technical map for Server Action and Automation models.

Files in this skill

  • SKILL.md4.2 KB
  • resources/dev-fields.json894 B
  • resources/dev-logic.md2.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.