<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="view_partners_form_crm_calls_inherit" model="ir.ui.view">
        <field name="name">view.res.partner.form.crm.inherited.calls</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="crm.view_partners_form_crm1" />
        <field eval="18" name="priority" />
        <field name="arch" type="xml">
            <div name="button_box" position="inside">
                <button
                    class="oe_stat_button"
                    context="{'search_default_partner_id': active_id}"
                    icon="fa-phone"
                    name="%(crm_phonecall.crm_case_categ_phone_incoming0)d"
                    type="action"
                    groups="sales_team.group_sale_manager,base.group_partner_manager"
                >
                    <field name="phonecall_count" string="Calls" widget="statinfo" />
                </button>
            </div>
        </field>
    </record>
</odoo>
