1 <?xml version="1.0" encoding="utf-8"?>
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">
12 <label for="filter_refund"/>
14 <field name="filter_refund" class="oe_inline"/>
15 <p attrs="{'invisible':[('filter_refund','<>','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.
21 <p attrs="{'invisible':[('filter_refund','<>','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.
26 <p attrs="{'invisible':[('filter_refund','<>','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.
35 <field name="description"/>
36 <field name="journal_id" widget='selection'/>
39 <field name="period"/>
43 <button string='Create Refund' name="invoice_refund" type="object" class="oe_highlight"/>
45 <button string="Cancel" class="oe_link" special="cancel"/>
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>