<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <!-- inherit view of Lead Form : adding the "convert to task" button -->
    <record id="crm_lead_view_form" model="ir.ui.view">
        <field name="model">crm.lead</field>
        <field name="inherit_id" ref="crm.crm_lead_view_form" />
        <field name="arch" type="xml">
            <field name="stage_id" position="before">
                <button
                    class="oe_stat_button"
                    type="action"
                    name="%(crm_lead_convert2task_action)d"
                    string="Convert to Task"
                    context="{'default_lead_id': active_id}"
                    groups="project.group_project_user"
                />
            </field>
        </field>
    </record>
</odoo>
