<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <!-- view of the Wizard Form -->
    <record id="crm_lead_convert2task_view_form" model="ir.ui.view">
        <field name="model">crm.lead.convert2task</field>
        <field name="arch" type="xml">
            <form string="Convert to Task">
                <group>
                    <field name="project_id" />
                </group>
                <footer>
                    <button
                        type="object"
                        name="action_lead_to_project_task"
                        string="Create Task"
                        class="btn-primary"
                    />
                    <button string="Cancel" class="btn-secondary" special="cancel" />
                </footer>
            </form>
        </field>
    </record>
    <!-- action of converting, via wizard -->
    <record id="crm_lead_convert2task_action" model="ir.actions.act_window">
        <field name="name">Convert to Task</field>
        <field name="res_model">crm.lead.convert2task</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>
    </record>
</odoo>
