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,61 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="ai_skill_view_form" model="ir.ui.view">
<field name="name">ai.skill.form</field>
<field name="model">ai.skill</field>
<field name="arch" type="xml">
<form string="AI Skill">
<sheet>
<div class="oe_title">
<label for="name"/>
<h1><field name="name" placeholder="e.g. Create records"/></h1>
</div>
<group>
<group>
<field name="sequence"/>
<field name="type"/>
<field name="is_native_skill"/>
</group>
</group>
<notebook>
<page string="Description" name="description">
<field name="description"
placeholder="Shown to the model to decide whether this skill is relevant…"/>
</page>
<page string="Instructions" name="instructions">
<field name="instructions"
placeholder="Full instructions injected once the skill is loaded…"/>
</page>
<page string="Tools" name="tools">
<field name="tool_ids" widget="many2many_tags"/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="ai_skill_view_list" model="ir.ui.view">
<field name="name">ai.skill.list</field>
<field name="model">ai.skill</field>
<field name="arch" type="xml">
<list string="AI Skills">
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="type"/>
<field name="tool_ids" widget="many2many_tags"/>
<field name="is_native_skill"/>
</list>
</field>
</record>
<record id="ai_skill_action" model="ir.actions.act_window">
<field name="name">Skills</field>
<field name="res_model">ai.skill</field>
<field name="view_mode">list,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">Create a skill</p>
<p>A skill teaches the assistant a workflow: instructions plus the tools it may use.</p>
</field>
</record>
</odoo>