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

        <record id="view_account_invoice_refund" model="ir.ui.view">
            <field name="name">account.invoice.refund.form</field>
            <field name="model">account.invoice.refund</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Refund Invoice">
                    <separator string="Refund Invoice Options" colspan="4"/>
                    <group colspan="4" >
                         <field name="description"/>
                         <field name="journal_id" widget='selection'/>
                         <field name="date"/>
                         <field name="period"/>
                         <field name="filter_refund"/>
                    </group>
                    <separator colspan="4"/>
                    <group col="4" colspan="4" fill="1">
                    	<label align="0.0" width="550" colspan="4" string="Modify Invoice: Cancels the current invoice and creates a new copy of it ready for editing."/>
                        <label align="0.0" width="300" string="Refund Invoice: Creates the refund invoice, ready for editing."/>
                        <label align="0.0" width="500" colspan="4" string="Cancel Invoice: Creates the refund invoice, validate and reconcile it to cancel the current invoice."/>
                    </group>
                    <separator colspan="4"/>
                    <group colspan="4" col="6">
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
                        <button string='Refund' icon="gtk-execute" name="invoice_refund" type="object"/>
                   </group>
               </form>
            </field>
        </record>

        <record id="action_account_invoice_refund" model="ir.actions.act_window">
            <field name="name">Refund</field>
            <field name="res_model">account.invoice.refund</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
           <field name="view_id" ref="view_account_invoice_refund"/>
           <field name="target">new</field>
        </record>


    </data>
</openerp>
