[MERGE] forward port of branch 7.0 up to de07c64
[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="arch" type="xml">
9                 <form string="Credit Note" version="7.0">
10                     <group>
11                          <group colspan="2">
12                              <label for="filter_refund"/>
13                              <div>
14                                  <field name="filter_refund" class="oe_inline"/>
15                                  <p attrs="{'invisible':[('filter_refund','&lt;&gt;','refund')]}" class="oe_grey">
16                                     You will be able to edit and validate this
17                                     credit note directly or keep it draft,
18                                     waiting for the document to be issued by
19                                     your supplier/customer.
20                                  </p>
21                                  <p attrs="{'invisible':[('filter_refund','&lt;&gt;','cancel')]}" class="oe_grey">
22                                     Use this option if you want to cancel an invoice you should not
23                                     have issued. The credit note will be created, validated and reconciled
24                                     with the invoice. You will not be able to modify the credit note.
25                                  </p>
26                                  <p attrs="{'invisible':[('filter_refund','&lt;&gt;','modify')]}" class="oe_grey">
27                                     Use this option if you want to cancel an invoice and create a new
28                                     one. The credit note will be created, validated and reconciled
29                                     with the current invoice. A new, draft, invoice will be created 
30                                     so that you can edit it.
31                                  </p>
32                              </div>
33                          </group>
34                          <group>
35                              <field name="description"/>
36                              <field name="journal_id" widget='selection'/>
37                          </group><group>
38                              <field name="date"/>
39                              <field name="period"/>
40                          </group>
41                     </group>
42                     <footer>
43                         <button string='Create Refund' name="invoice_refund" type="object" class="oe_highlight"/>
44                         or
45                         <button string="Cancel" class="oe_link" special="cancel"/>
46                     </footer>
47                </form>
48             </field>
49         </record>
50
51         <record id="action_account_invoice_refund" model="ir.actions.act_window">
52             <field name="name">Refund Invoice</field>
53             <field name="res_model">account.invoice.refund</field>
54             <field name="view_type">form</field>
55             <field name="view_mode">tree,form</field>
56            <field name="view_id" ref="view_account_invoice_refund"/>
57            <field name="target">new</field>
58         </record>
59
60
61     </data>
62 </openerp>