본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)48k · #5356

odoo-xml-views-builder

하는 일

이 AI 에이전트는 기업 관리 시스템인 Odoo용 XML 코드를 만들고 고치도록 돕습니다. 양식, 목록, 칸반 보드 같은 뷰를 생성해 정보를 정리하고 표시합니다.

사용하는 경우

  • ✓고객 데이터를 등록하는 새 양식을 만들 때.
  • ✓판매 화면에 제품 목록을 추가할 때.
  • ✓작업을 추적하기 위해 시각적 보드(칸반)에 정보를 정리하는 경우.

스킬 링크

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

AI에게 요청하는 예시

“'Product' 모델을 위해 'name', 'price', 'description' 필드가 있는 XML 양식을 만들어 주세요.”

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

작동 방식

필요한 뷰의 유형(양식, 목록 등)과 데이터 모델을 설명합니다. AI는 Odoo에서 바로 쓸 수 있는 XML 코드를 생성하거나, 이미 가지고 있는 코드를 검토합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Odoo XML Views Builder

Overview

This skill generates and reviews Odoo XML view definitions for Kanban, Form, List, Search, Calendar, and Graph views. It understands visibility modifiers, groups, domain, context, and widget usage across Odoo versions 14–17, including the migration from attrs (v14–16) to inline expressions (v17+).

When to Use This Skill

  • Creating a new form or list view for a custom model.
  • Adding fields, tabs, or smart buttons to an existing view.
  • Building a Kanban view with color coding or progress bars.
  • Creating a search view with filters and group-by options.

How It Works

  1. Activate: Mention @odoo-xml-views-builder and describe the view you want.
  2. Generate: Get complete, ready-to-paste XML view definitions.
  3. Review: Paste existing XML and get fixes for common mistakes.

Examples

Example 1: Form View with Tabs

<record id="view_hospital_patient_form" model="ir.ui.view">
    <field name="name">hospital.patient.form</field>
    <field name="model">hospital.patient</field>
    <field name="arch" type="xml">
        <form string="Patient">
            <header>
                <button name="action_confirm" string="Confirm"
                    type="object" class="btn-primary"
                    invisible="state != 'draft'"/>
                <field name="state" widget="statusbar"
                    statusbar_visible="draft,confirmed,done"/>
            </header>
            <sheet>
                <div class="oe_title">
                    <h1><field name="name" placeholder="Patient Name"/></h1>
                </div>
                <notebook>
                    <page string="General Info">
                        <group>
                            <field name="birth_date"/>
                            <field name="doctor_id"/>
                        </group>
                    </page>
                </notebook>
            </sheet>
            <chatter/>
        </form>
    </field>
</record>

Example 2: Kanban View

<record id="view_hospital_patient_kanban" model="ir.ui.view">
    <field name="name">hospital.patient.kanban</field>
    <field name="model">hospital.patient</field>
    <field name="arch" type="xml">
        <kanban default_group_by="state" class="o_kanban_small_column">
            <field name="name"/>
            <field name="state"/>
            <field name="doctor_id"/>
            <templates>
                <t t-name="kanban-card">
                    <div class="oe_kanban_content">
                        <strong><field name="name"/></strong>
                        <div>Doctor: <field name="doctor_id"/></div>
                    </div>
                </t>
            </templates>
        </kanban>
    </field>
</record>

Best Practices

  • ✅ Do: Use inline invisible="condition" (Odoo 17+) instead of attrs for show/hide logic.
  • ✅ Do: Use attrs="{'invisible': [...]}" only if you are targeting Odoo 14–16 — it is deprecated in v17.
  • ✅ Do: Always set a string attribute on your view record for debugging clarity.
  • ✅ Do: Use <chatter/> (v17) or <div class="oe_chatter"> + field tags (v16 and below) for activity tracking.
  • ❌ Don't: Use attrs in Odoo 17 — it is fully deprecated and raises warnings in logs.
  • ❌ Don't: Put business logic in view XML — keep it in Python model methods.
  • ❌ Don't: Use hardcoded domain strings in views when a domain field on the model can be used dynamically.

Limitations

  • Does not cover OWL JavaScript widgets or client-side component development.
  • Search panel views (<searchpanel>) are not fully covered — those require frontend knowledge.
  • Does not address website QWeb views — use @odoo-qweb-templates for those.
  • Cohort and Map views (Enterprise-only) are not covered by this skill.
자주 묻는 질문

Odoo의 XML 뷰란 무엇인가요?

사용자에게 화면에서 정보가 어떻게 표시될지 정의하는 코드 조각입니다. 데이터 입력 양식, 항목 목록, 추적 보드 등이 있습니다.

‘칸반’, ‘양식’, ‘목록’ 뷰는 무엇인가요?

‘양식’은 항목을 하나씩 보고 편집하는 것이고, ‘목록’은 여러 항목을 행으로 보여 줍니다. ‘칸반’은 항목을 카드로 나타내며 워크플로에 알맞습니다.

‘Odoo 14-17’은 무슨 뜻인가요?

이 코드가 호환되는 Odoo 시스템의 버전을 나타냅니다. 버전 사이에 약간의 조정이 필요할 수 있습니다.

상세 정보

작성자의 원본 설명

Expert at building Odoo XML views: Form, List, Kanban, Search, Calendar, and Graph. Generates correct XML for Odoo 14-17 with proper visibility syntax.

repo: sickn33/agentic-awesome-skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬