본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)48k · #5344

odoo-module-developer

하는 일

이 도우미는 사업 관리 시스템인 Odoo를 위한 사용자 정의 모듈을 만들고 구성하도록 돕습니다. 파일 구조를 설정하고, 데이터를 정의하며, 프로그래밍 모범 사례를 따르도록 안내합니다.

사용하는 경우

  • ✓Odoo에서 처음부터 새 모듈을 만들어야 할 때.
  • ✓기존 모듈에 새 기능이나 필드를 추가하고 싶을 때.
  • ✓모듈의 구조나 설정과 관련된 오류를 고치는 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/odoo-module-developer/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“'inventory_control'이라는 이름의 모듈을 만들고, 제품용 모델을 포함해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

만들고 싶은 모듈을 설명하면, 도우미가 기본 폴더와 파일 구조를 생성합니다. 여기에는 주요 설정 파일(__manifest__.py)과 데이터 정의(모델)를 위한 예제 파일이 포함됩니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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.

자주 묻는 질문

Odoo 모듈이란 무엇인가요?

판매, 재고, 회계 관리 등 Odoo 시스템에 기능을 더하는 코드 묶음입니다.

__manifest__.py 파일이란 무엇인가요?

모든 Odoo 모듈에 필수적인 설정 파일입니다. 모듈의 이름, 버전, 의존성, 사용하는 데이터 파일 같은 정보를 담고 있습니다.

‘모델 상속’은 무엇을 의미하나요?

원래 코드를 바꾸지 않고 Odoo의 기존 모델(데이터 테이블)의 기능을 확장하거나 수정하는 기법입니다. 새 필드, 메서드, 규칙을 추가할 수 있습니다.

상세 정보

작성자의 원본 설명

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

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5344
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬