[ADD] Account: wizards convert to osv memory (Total:8)--author=aag(OpenERP)
[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">
11                         <group colspan="4" >
12                          <label string="Are you sure you want to refund this invoice ?" colspan="2"/>
13                          <newline/>
14                          <field name="date"/>
15                          <field name="period"/>
16                          <field name="description"/>
17                     </group>
18                         <separator string="" colspan="4" />
19                     <group colspan="4" col="6">
20                         <label string ="" colspan="2"/>
21                         <button icon="gtk-cancel" special="cancel" string="Cancel"/>
22                         <button icon="gtk-redo" string="Refund Invoice" name="invoice_refund" type="object"/>
23                         <button icon="gtk-ok" string="Cancel Invoice" name="invoice_cancel" type="object"/>
24                         <button icon="gtk-undo" string="Modify Invoice" name="invoice_modify" type="object"/>
25                    </group>
26                </form>
27             </field>
28         </record>
29
30         <record id="action_account_invoice_refund" model="ir.actions.act_window">
31             <field name="name">Credit Note</field>
32             <field name="res_model">account.invoice.refund</field>
33             <field name="view_type">form</field>
34             <field name="view_mode">tree,form</field>
35            <field name="view_id" ref="view_account_invoice_refund"/>
36            <field name="target">new</field>
37         </record>
38
39         <act_window id="action_account_invoice_refund"
40                 key2 = "client_action_multi"   name="Credit Note"
41                 res_model="account.invoice.refund"  src_model="account.invoice"
42                 view_mode="form" target="new"  view_type="form" />
43
44     </data>
45 </openerp>