This commit is contained in:
2026-11-25 11:58:57 +08:00
parent 5fc4382687
commit 88b4fe3d59
3210 changed files with 11146 additions and 601197 deletions

View File

@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- ================= Agent ================= -->
<record id="ai_agent_view_form" model="ir.ui.view">
<field name="name">ai.agent.form</field>
<field name="model">ai.agent</field>
<field name="arch" type="xml">
<form string="AI Agent">
<header>
<button name="action_launch_ai_chat" type="object"
string="Start a chat" class="btn-primary" icon="fa-comments"/>
</header>
<sheet>
<field name="image_128" widget="image" class="oe_avatar" options="{'preview_image': 'image_128'}"/>
<div class="oe_title">
<label for="name"/>
<h1>
<field name="name" placeholder="e.g. Sales assistant"/>
</h1>
<field name="subtitle" placeholder="One line describing what this agent does"/>
</div>
<group>
<group>
<field name="active"/>
<field name="sequence"/>
<field name="is_system_agent"/>
</group>
<group>
<field name="partner_id"/>
</group>
</group>
<notebook>
<page string="Instructions" name="instructions">
<field name="system_prompt"
placeholder="Describe the persona, tone and rules of this agent…"/>
</page>
<page string="Skills" name="skills">
<field name="skill_ids" widget="many2many_tags"/>
</page>
<page string="Delegation" name="delegation">
<field name="allowed_agent_ids" widget="many2many_tags"/>
</page>
</notebook>
</sheet>
<chatter/>
</form>
</field>
</record>
<record id="ai_agent_view_list" model="ir.ui.view">
<field name="name">ai.agent.list</field>
<field name="model">ai.agent</field>
<field name="arch" type="xml">
<list string="AI Agents">
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="subtitle"/>
<field name="skill_ids" widget="many2many_tags"/>
<field name="is_system_agent"/>
</list>
</field>
</record>
<record id="ai_agent_action" model="ir.actions.act_window">
<field name="name">Agents</field>
<field name="res_model">ai.agent</field>
<field name="view_mode">list,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">Create your first AI agent</p>
<p>An agent combines a system prompt, skills and tools. Chat with it from the
AI menu or from the systray.</p>
</field>
</record>
</odoo>