<?xml version="1.0"?>
<openerp>
    <data>
        <record model="ir.ui.view" id="account_report_company_invoice_report_tree_view">
            <field name="model">account.invoice.report</field>
            <field name="inherit_id" ref="account.view_account_invoice_report_tree"/>
            <field name="arch" type="xml">
                <field name="partner_id" position="after">
                    <field name="commercial_partner_id" invisible="1"/>
                </field>
            </field>
        </record>

        <record model="ir.ui.view" id="account_report_company_invoice_report_search_view">
            <field name="model">account.invoice.report</field>
            <field name="inherit_id" ref="account.view_account_invoice_report_search"/>
            <field name="arch" type="xml">
                <filter name="partner" position="replace">
                    <filter string="Partner" name="commercial_partner_id" context="{'group_by':'commercial_partner_id','residual_visible':True}"/>
                </filter>
            </field>
        </record>
    </data>
</openerp>