[IMP] remove cancel button from wizard and improved view.
[odoo/odoo.git] / addons / account / wizard / account_invoice_refund_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <record id="view_account_invoice_refund" model="ir.ui.view">
6             <field name="name">account.invoice.refund.form</field>
7             <field name="model">account.invoice.refund</field>
8             <field name="type">form</field>
9             <field name="arch" type="xml">
10                 <form string="Credit Note" version="7.0">
11                     <header>
12                         <button string='Refund' icon="gtk-execute" name="invoice_refund" type="object" class="oe_form_button_active_flow"/>
13                     </header>
14                     <separator string="Credit Note Options"/>
15                     <group col="4">
16                          <field name="description"/>
17                          <field name="journal_id" widget='selection'/>
18                          <field name="date"/>
19                          <field name="period"/>
20                          <field name="filter_refund"/>
21                     </group>
22                     <label string="Modify Invoice: Cancels the current invoice and creates a new copy of it ready for editing."/>
23                     <label string="Credit Note: Creates the credit note, ready for editing."/>
24                     <label string="Cancel Invoice: Creates the credit note, validate and reconcile it to cancel the current invoice."/>
25                </form>
26             </field>
27         </record>
28
29         <record id="action_account_invoice_refund" model="ir.actions.act_window">
30             <field name="name">Refund</field>
31             <field name="res_model">account.invoice.refund</field>
32             <field name="view_type">form</field>
33             <field name="view_mode">tree,form</field>
34            <field name="view_id" ref="view_account_invoice_refund"/>
35            <field name="target">new</field>
36         </record>
37
38
39     </data>
40 </openerp>