本文へスキップ
Skillpedia
Webサイトと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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/odoo-xml-views-builder/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“「商品」モデルに「名前」「価格」「説明」のフィールドを持つ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ビューとは何ですか?

ユーザーの画面に情報をどのように表示するかを定義するコードの断片です。データ入力フォーム、商品一覧、タスクのボードなどが該当します。

「カンバン」「フォーム」「リスト」のビューとは何ですか?

「フォーム」は一度に1件のデータを閲覧・編集するためのものです。「リスト」は複数のデータを行ごとに表示します。「カンバン」はデータをカードで表現するもので、作業の流れを扱うのに向いています。

「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

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル