odoo-xml-views-builder
What it does
This AI agent helps create and fix XML code for Odoo, an enterprise management system. It generates views like forms, lists, and Kanban boards to organize and display information.
When to use it
- βCreating a new form to register customer data.
- βAdding a product list to a sales screen.
- βOrganizing information on a visual board (Kanban) to track tasks.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/odoo-xml-views-builder/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCreate an XML form for the 'Product' model with 'name', 'price', and 'description' fields.β
5 new skills a week. 1 minute to read.
How it works
You describe the type of view you need (form, list, etc.) and for which data model. The AI generates ready-to-use XML code for Odoo or reviews code you already have.
Technical content (original SKILL.md)
Original text by the author, straight from 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
- Activate: Mention
@odoo-xml-views-builderand describe the view you want. - Generate: Get complete, ready-to-paste XML view definitions.
- 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 ofattrsfor show/hide logic. - β
Do: Use
attrs="{'invisible': [...]}"only if you are targeting Odoo 14β16 β it is deprecated in v17. - β
Do: Always set a
stringattribute 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
attrsin 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
domainstrings in views when adomainfield 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-templatesfor those. - Cohort and Map views (Enterprise-only) are not covered by this skill.
FAQ
What are XML views in Odoo?
They are code snippets that define how information is presented on the screen to the user, such as data entry forms, item lists, or tracking boards.
What are 'Kanban', 'Form', and 'List' views?
'Form' is for viewing and editing one item at a time. 'List' shows multiple items in rows. 'Kanban' uses cards to represent items, good for workflows.
What does 'Odoo 14-17' mean?
It indicates the versions of the Odoo system for which this code is compatible. The code might need minor adjustments between versions.
Details
Original description by the author
Expert at building Odoo XML views: Form, List, Kanban, Search, Calendar, and Graph. Generates correct XML for Odoo 14-17 with proper visibility syntax.
Popularity
- GitHub stars
- 48k
- Ranking position
- #5356
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.