Zum Inhalt springen
Skillpedia
APIs & Server (Backend)48k · #5344

odoo-module-developer

Was er macht

Dieser Assistent hilft dir, eigene Module für Odoo, ein System für Unternehmensverwaltung, zu erstellen und zu organisieren. Er führt dich durch den Aufbau der Dateistruktur, die Definition von Daten und die Einhaltung bewährter Programmierpraktiken.

Wann du ihn nutzt

  • ✓Wenn du ein neues Modul in Odoo von Grund auf erstellen willst.
  • ✓Wenn du einem bestehenden Modul neue Funktionen oder Felder hinzufügen willst.
  • ✓Um Fehler zu beheben, die mit der Struktur oder Konfiguration eines Moduls zusammenhängen.

Link zum Skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/odoo-module-developer/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/odoo-module-developer/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Erstelle ein Modul namens 'inventory_control' mit einem Modell für Produkte.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Du beschreibst das Modul, das du bauen willst. Der Assistent erzeugt die grundlegende Ordner- und Dateistruktur, inklusive der zentralen Konfigurationsdatei (__manifest__.py) und einer Beispieldatei zur Definition der Daten (Models).

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Odoo Module Developer

Overview

This skill transforms your AI into an expert Odoo custom module developer. It guides you through scaffolding new modules, defining models, setting up security, and following Odoo's coding conventions for both Community and Enterprise editions.

When to Use This Skill

  • Starting a new custom Odoo module from scratch.
  • Extending an existing Odoo model (e.g., adding fields to sale.order).
  • Troubleshooting module loading errors or manifest issues.
  • Implementing onchange, compute, and constraint methods correctly.

How It Works

  1. Activate: Mention @odoo-module-developer and describe the module you want to build.
  2. Scaffold: Get the full folder structure with __manifest__.py, __init__.py, models, views, and security files.
  3. Review: Paste existing code and get a review against Odoo best practices.

Examples

Example 1: Scaffold a New Module

Prompt: Create a module called "hospital_management" with a model for patients

Generated structure:

hospital_management/
├── __manifest__.py
├── __init__.py
├── models/
│   ├── __init__.py
│   └── hospital_patient.py
├── views/
│   └── hospital_patient_views.xml
├── security/
│   ├── ir.model.access.csv
│   └── security.xml
└── data/

__manifest__.py:

{
    'name': 'Hospital Management',
    'version': '17.0.1.0.0',
    'category': 'Healthcare',
    'depends': ['base', 'mail'],
    'data': [
        'security/security.xml',
        'security/ir.model.access.csv',
        'views/hospital_patient_views.xml',
    ],
    'installable': True,
    'license': 'LGPL-3',
}

models/hospital_patient.py:

from odoo import models, fields, api

class HospitalPatient(models.Model):
    _name = 'hospital.patient'
    _description = 'Hospital Patient'
    _inherit = ['mail.thread', 'mail.activity.mixin']

    name = fields.Char(string='Patient Name', required=True, tracking=True)
    birth_date = fields.Date(string='Birth Date')
    doctor_id = fields.Many2one('res.users', string='Assigned Doctor')
    state = fields.Selection([
        ('draft', 'New'),
        ('confirmed', 'Confirmed'),
        ('done', 'Done'),
    ], default='draft', tracking=True)

Best Practices

  • ✅ Do: Always prefix your model _name with a namespace (e.g., hospital.patient).
  • ✅ Do: Use _inherit = ['mail.thread'] to add chatter/logging automatically.
  • ✅ Do: Specify version in manifest as {odoo_version}.{major}.{minor}.{patch}.
  • ✅ Do: Set 'author' and 'website' in __manifest__.py so your module is identifiable in the Apps list.
  • ❌ Don't: Modify core Odoo model files directly — always use _inherit.
  • ❌ Don't: Forget to add new models to ir.model.access.csv or users will get access errors.
  • ❌ Don't: Use spaces or uppercase in folder names — Odoo requires snake_case module names.

Limitations

  • Does not cover OWL JavaScript components or frontend widget development — use @odoo-xml-views-builder for view XML.
  • The manifest example targets Odoo 17; verify the exact version and supported module/view syntax. Older Odoo releases also use module manifests; do not infer a nonexistent manifest cutoff.
  • Does not cover multi-company or multi-website configuration; those require additional model fields (company_id, website_id).
  • Does not generate automated test files — use @odoo-automated-tests for that.

The displayed tree is a scaffold, not a complete installable module: supply imports, XML views, named groups, ACLs and record rules before claiming it works. Avoid default broad patient-data access; chatter/tracking can disclose sensitive values, so select fields and followers deliberately. Test installation, multi-record compute/constraints and unauthorized access in a disposable database, never through an unrequested production module upgrade.

Häufige Fragen

Was ist ein Odoo-Modul?

Ein Modul ist ein Code-Paket, das dem Odoo-System Funktionen hinzufügt, zum Beispiel für Verkauf, Lager oder Buchhaltung.

Was ist die Datei __manifest__.py?

Sie ist die wichtigste Konfigurationsdatei jedes Odoo-Moduls. Sie enthält Infos wie Name, Version, Abhängigkeiten und welche Datendateien genutzt werden.

Was bedeutet 'Model-Vererbung'?

Das ist eine Technik, um die Funktionen eines bestehenden Models (Datentabelle) in Odoo zu erweitern oder zu ändern, ohne den Originalcode zu verändern. Du kannst neue Felder, Methoden oder Regeln hinzufügen.

Details

Originalbeschreibung des Autors

Expert guide for creating custom Odoo modules. Covers __manifest__.py, model inheritance, ORM patterns, and module structure best practices.

repo: sickn33/agentic-awesome-skills

Beliebtheit

GitHub-Sterne
48k
Platz im Ranking
#5344
Lizenz
MIT
Aktualisiert
15.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills