<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="view_payment_form_inherit_expense" model="ir.ui.view">
            <field name="name">account.payment.form.inherit</field>
            <field name="model">account.payment</field>
            <field name="inherit_id" ref="account.view_account_payment_form"/>
            <field name="arch" type="xml">
                <xpath expr="//div[@name='button_box']" position="inside">
                    <field name="expense_sheet_id" invisible="1"/>
                    <button name="action_open_expense_report"
                            class="oe_stat_button"
                            icon="fa-file-text-o"
                            type="object"
                            invisible="not expense_sheet_id">
                            <div class="o_stat_info">
                                <span class="o_stat_text">Expense Report</span>
                            </div>
                    </button>
                </xpath>
            </field>
        </record>
    </data>
</odoo>
