Files
dn20/ai_social/views/im_livechat_channel_views.xml
2026-11-08 20:08:53 +08:00

21 lines
889 B
XML

<?xml version="1.0"?>
<odoo>
<data>
<record id="im_livechat_channel_view_form" model="ir.ui.view">
<field name="name">im_livechat.channel.view.form.inherit.ai_social</field>
<field name="model">im_livechat.channel</field>
<field name="inherit_id" ref="im_livechat.im_livechat_channel_view_form"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='social_away_message']" position="after">
<group>
<field name="ai_social_livechat_agent_id" invisible="not social_account_ids"
placeholder="Connect an AI Agent..."/>
<field name="ai_social_livechat_enabled_condition"
invisible="not social_account_ids or not ai_social_livechat_agent_id"/>
</group>
</xpath>
</field>
</record>
</data>
</odoo>