62 lines
2.5 KiB
XML
62 lines
2.5 KiB
XML
<?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>
|