Files
Enofirm-Temp/extra-addons/AI/llm/wizards/fetch_models_views.xml
T
2026-09-18 13:55:25 +07:00

81 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Wizard Form View -->
<record id="view_fetch_models_wizard" model="ir.ui.view">
<field name="name">llm.fetch.models.wizard.form</field>
<field name="model">llm.fetch.models.wizard</field>
<field name="arch" type="xml">
<form>
<sheet>
<!-- Header Info -->
<group>
<group>
<field name="provider_id" readonly="1" />
<field name="model_count" readonly="1" />
</group>
<group>
<field name="new_count" readonly="1" />
<field name="modified_count" readonly="1" />
</group>
</group>
<!-- Models List -->
<field
name="line_ids"
options="{'reload_on_button': false}"
>
<list editable="bottom" create="0" delete="0">
<!-- Selection -->
<field name="selected" widget="boolean_toggle" />
<!-- Basic Info -->
<field name="name" readonly="1" force_save="1" />
<field
name="model_use"
readonly="1"
force_save="1"
/>
<!-- Status with decoration -->
<field
name="status"
readonly="1"
force_save="1"
decoration-info="status=='existing'"
decoration-success="status=='new'"
decoration-warning="status=='modified'"
/>
<field name="existing_model_id" invisible="1" />
</list>
</field>
<!-- Helpful Note -->
<div class="text-muted mt-3">
<p>
<i class="fa fa-info-circle" />
Select the models you want to import or update. New models will be created, and existing ones will be updated if modified.
</p>
</div>
</sheet>
<footer>
<button
string="Import Selected Models"
name="action_confirm"
type="object"
class="btn-primary"
data-hotkey="q"
/>
<button
string="Cancel"
class="btn-secondary"
special="cancel"
data-hotkey="z"
/>
</footer>
</form>
</field>
</record>
</odoo>