[MERGE] lp881356
[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="Refund Invoice">
11                     <separator string="Refund Invoice Options" colspan="4"/>
12                     <group colspan="4" >
13                          <field name="description"/>
14                          <field name="journal_id" widget='selection'/>
15                          <field name="date"/>
16                          <field name="period"/>
17                          <field name="filter_refund"/>
18                     </group>
19                     <separator colspan="4"/>
20                     <group col="4" colspan="4" fill="1">
21                         <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."/>
22                         <label align="0.0" width="300" string="Refund Invoice: Creates the refund invoice, ready for editing."/>
23                         <label align="0.0" width="500" colspan="4" string="Cancel Invoice: Creates the refund invoice, validate and reconcile it to cancel the current invoice."/>
24                     </group>
25                     <separator colspan="4"/>
26                     <group colspan="4" col="6">
27                         <button icon="gtk-cancel" special="cancel" string="Cancel"/>
28                         <button string='Refund' icon="gtk-execute" name="invoice_refund" type="object"/>
29                    </group>
30                </form>
31             </field>
32         </record>
33
34         <record id="action_account_invoice_refund" model="ir.actions.act_window">
35             <field name="name">Refund</field>
36             <field name="res_model">account.invoice.refund</field>
37             <field name="view_type">form</field>
38             <field name="view_mode">tree,form</field>
39            <field name="view_id" ref="view_account_invoice_refund"/>
40            <field name="target">new</field>
41         </record>
42
43
44     </data>
45 </openerp>