<?xml version="1.0"?>
<form string="New Quotation">
                <group>
                    <group>
                        <field name="action" widget="radio"/>
                        <field name="lead_id" invisible="1"/>
                    </group>
                </group>
                <group invisible="action != 'exist'" required="action == 'exist'">
                    <group>
                        <field name="partner_id" invisible="action != 'exist'" required="action == 'exist'" context="{'res_partner_search_mode': 'customer'}"/>
                    </group>
                </group>
                <footer>
                    <button name="action_apply" string="Confirm" type="object" class="btn-primary" data-hotkey="q"/>
                    <button string="Cancel" class="btn-secondary" special="cancel" data-hotkey="x"/>
                </footer>
            </form>
        