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

    <record id="view_edit_project_inherit_form_crm_project" model="ir.ui.view">
        <field name="name">project.project.view.inherit.crm.project</field>
        <field name="model">project.project</field>
        <field name="inherit_id" ref="project.edit_project"/>
        <field name="arch" type="xml">
            <xpath expr="//button[@name='action_customer_preview']" position="after">
                <button name="action_view_lead" icon="fa-star" type="object" class="oe_stat_button"
                    invisible="not lead_id or not allow_billable" groups="sales_team.group_sale_salesman_all_leads">
                    <div class="o_stat_info">
                        <span class="o_stat_text">Opportunity</span>
                    </div>
                </button>
            </xpath>
        </field>
    </record>

</odoo>
