update 查model

This commit is contained in:
Ivan Office
2025-02-10 16:38:42 +08:00
parent d11ab398bf
commit fa963c8e0c
2 changed files with 3 additions and 3 deletions

View File

@@ -70,8 +70,8 @@
<field name="arch" type="xml">
<form>
<header>
<button string="Get List Model" type="object" name="get_ai_list_model" attrs="{'invisible': [('provider', '!=', 'openai')]}"/>
<button string="Get Model Info" type="object" name="get_ai_model_info" attrs="{'invisible': [('provider', '!=', 'openai')]}"/>
<button string="Get List Model" type="object" name="get_ai_list_model"/>
<button string="Get Model Info" type="object" name="get_ai_model_info"/>
</header>
<sheet>
<div class="oe_button_box" name="button_box">

View File

@@ -6,7 +6,7 @@
<field name="inherit_id" ref="app_chatgpt.ai_robot_form_view"/>
<field name="arch" type="xml">
<xpath expr="//button[@name='get_ai_list_model']" position="attributes">
<attribute name="attrs">{'invisible': False}</attribute>
<attribute name="attrs">{'invisible': 0}</attribute>
</xpath>
</field>
</record>