<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <record id="res_config_settings_view_form_rc" model="ir.ui.view">
        <field name="name">res.config.settings.view.form.inherit.fusion.rc</field>
        <field name="model">res.config.settings</field>
        <field name="inherit_id" ref="base.res_config_settings_view_form"/>
        <field name="arch" type="xml">
            <xpath expr="//form" position="inside">
                <app data-string="Fusion RingCentral" string="Fusion RingCentral" name="fusion_ringcentral"
                     groups="fusion_ringcentral.group_rc_manager">
                    <h2>AI Transcription</h2>
                    <div class="row mt-4 o_settings_container">
                        <div class="col-12 col-lg-6 o_setting_box">
                            <div class="o_setting_right_pane">
                                <span class="o_form_label">OpenAI API Key</span>
                                <div class="text-muted">Used for automatic voicemail transcription via Whisper.</div>
                                <div class="mt-2">
                                    <field name="rc_openai_api_key" password="True"/>
                                </div>
                            </div>
                        </div>
                    </div>
                </app>
            </xpath>
        </field>
    </record>

</odoo>
