<?xml version="1.0"?>
<form string="Convert to Opportunity">
                <group name="name">
                    <field name="name" widget="radio"/>
                </group>
                <group string="Assign this opportunity to">
                    <field name="user_id" widget="many2one_avatar_user" domain="[('share', '=', False)]"/>
                    <field name="team_id" options="{'no_open': True, 'no_create': True}" context="{'kanban_view_ref': 'sales_team.crm_team_view_kanban'}"/>
                </group>
                <group string="Opportunities" invisible="name != 'merge'">
                    <field name="lead_id" invisible="1"/>
                    <field name="duplicated_lead_ids" nolabel="1">
                        <list>
                            <field name="create_date"/>
                            <field name="name"/>
                            <field name="type" optional="hide"/>
                            <field name="contact_name" optional="show"/>
                            <field name="country_id" column_invisible="context.get('invisible_country', True)" options="{'no_open': True, 'no_create': True}"/>
                            <field name="email_from" optional="show"/>
                            <field name="stage_id"/>
                            <field name="user_id" widget="many2one_avatar_user"/>
                            <field name="team_id" context="{'kanban_view_ref': 'sales_team.crm_team_view_kanban'}" optional="hide"/>
                        </list>
                    </field>
                </group>
                <group name="action" invisible="name != 'convert'" string="Customer" col="1">
                    <field name="action" nolabel="1" widget="radio"/>
                    <group col="2">
                        <field name="partner_id" widget="res_partner_many2one" context="{'res_partner_search_mode': 'customer', 'show_vat': True}" invisible="action != 'exist'" required="action == 'exist'"/>
                    </group>
                </group>
                <footer>
                    <button name="action_apply" string="Create Opportunity" type="object" class="btn-primary" data-hotkey="q"/>
                    <button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="x"/>
                </footer>
            </form>
        