[IMP] Account: Rename Credit Note into Refund
[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">
11                     <separator string="This wizard is used to refund the invoice" colspan="4"/>
12                     <group colspan="4" >
13                          <label string="Are you sure you want to refund this invoice ?" colspan="2"/>
14                          <newline/>
15                          <field name="date"/>
16                          <field name="period"/>
17                          <field name="description"/>
18                     </group>
19                     <separator colspan="4"/>
20                     <group col="4" colspan="4" fill="1">
21                         <label align="0.0" width="300" string="Refund Invoice: creates a refund invoice"/>
22                         <label align="0.0" width="500" colspan="4" string="Cancel Invoice: creates a reverse accounting entries to cancel the invoice"/>
23                         <label align="0.0" width="550" colspan="4" string="Modify Invoice: creates a refund invoice, and new copy of the same invoice ready for editing"/>
24                     </group>
25                     <separator colspan="4"/>
26                     <group colspan="4" col="6">
27                         <label string ="" colspan="2"/>
28                         <button icon="gtk-cancel" special="cancel" string="Cancel"/>
29                         <button icon="gtk-redo" string="Refund Invoice" name="invoice_refund" type="object"/>
30                         <button icon="gtk-ok" string="Cancel Invoice" name="invoice_cancel" type="object"/>
31                         <button icon="gtk-undo" string="Modify Invoice" name="invoice_modify" type="object"/>
32                    </group>
33                </form>
34             </field>
35         </record>
36
37         <record id="action_account_invoice_refund" model="ir.actions.act_window">
38             <field name="name">Refund</field>
39             <field name="res_model">account.invoice.refund</field>
40             <field name="view_type">form</field>
41             <field name="view_mode">tree,form</field>
42            <field name="view_id" ref="view_account_invoice_refund"/>
43            <field name="target">new</field>
44         </record>
45
46
47     </data>
48 </openerp>