This commit is contained in:
2026-11-08 20:08:53 +08:00
parent 7526a5fe4d
commit 9b924747c5
2692 changed files with 394867 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_model_form" model="ir.ui.view">
<field name="model">ir.model</field>
<field name="inherit_id" ref="base.view_model_form"/>
<field name="arch" type="xml">
<field name="field_id" position="attributes">
<attribute name="context">{'default_model': model}</attribute>
</field>
<page name="groups" position="after">
<page name="ai" string="AI" invisible="ttype in ('binary', 'one2many', 'reference')">
<group>
<field name="ai" readonly="not supports_ai"/>
<field name="model" invisible="1"/> <!-- Used by the `ai_prompt` widget -->
<field name="system_prompt"
invisible="not ai"
placeholder="Describe how to compute this field, or type '/' for commands..."
widget="ai_prompt"
options="{
'model_reference_field': 'model',
'field_reference_field': 'name',
'record_selector_relation_field': 'relation'
}"/>
</group>
</page>
</page>
</field>
</record>
<record id="view_model_fields_form" model="ir.ui.view">
<field name="model">ir.model.fields</field>
<field name="inherit_id" ref="base.view_model_fields_form"/>
<field name="arch" type="xml">
<page name="groups" position="after">
<page name="ai" string="AI" invisible="ttype in ('binary', 'one2many', 'reference')">
<group>
<field name="ai" readonly="not supports_ai"/>
<field name="model" invisible="1"/> <!-- Used by the `ai_prompt` widget -->
<field name="system_prompt"
invisible="not ai"
placeholder="Describe how to compute this field, or type '/' for commands..."
widget="ai_prompt"
options="{
'model_reference_field': 'model',
'field_reference_field': 'name',
'record_selector_relation_field': 'relation'
}"/>
</group>
</page>
</page>
</field>
</record>
</odoo>