mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update 查model
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user