[REM] account: Removed unnecessary arguments from name_search.
[odoo/odoo.git] / addons / account / wizard / account_invoice_refund_view.xml
index 1efb63a..c68c916 100644 (file)
@@ -1,37 +1,45 @@
 <?xml version="1.0" encoding="utf-8"?>
 <openerp>
     <data>
-       <record id="view_account_invoice_refund" model="ir.ui.view">
+
+        <record id="view_account_invoice_refund" model="ir.ui.view">
             <field name="name">account.invoice.refund.form</field>
             <field name="model">account.invoice.refund</field>
             <field name="type">form</field>
             <field name="arch" type="xml">
-                <form string="Credit Note">
-                       <group colspan="4" >
-                        <label string="Are you sure you want to refund this invoice ?" colspan="2"/>
-                        <newline/>
-                        <field name="date"/>
-                        <field name="period"/>
-                        <field name="description"/>
+                <form string="Refund Invoice">
+                    <separator string="Refund Invoice Options" colspan="4"/>
+                    <group colspan="4" >
+                         <field name="description"/>
+                         <field name="journal_id" widget='selection'/>
+                         <field name="date"/>
+                         <field name="period"/>
+                         <field name="filter_refund"/>
                     </group>
-                               <separator string="" colspan="4" />
+                    <separator colspan="4"/>
+                    <group col="4" colspan="4" fill="1">
+                       <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."/>
+                        <label align="0.0" width="300" string="Refund Invoice: Creates the refund invoice, ready for editing."/>
+                        <label align="0.0" width="500" colspan="4" string="Cancel Invoice: Creates the refund invoice, validate and reconcile it to cancel the current invoice."/>
+                    </group>
+                    <separator colspan="4"/>
                     <group colspan="4" col="6">
-                               <label string ="" colspan="2"/>
-                       <button  special="cancel" string="Cancel"/>
-                       <button string="Refund Invoice" name="_invoice_refund" type="object"/>
-                       <button string="Cancel Invoice" name="_invoice_cancel" type="object"/>
-                       <button string="Modify Invoice" name="_invoice_modify" type="object"/>
+                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
+                        <button string='Refund' icon="gtk-execute" name="invoice_refund" type="object"/>
                    </group>
                </form>
             </field>
-       </record>
-        <record id="wizard_invoice_refund" model="ir.actions.act_window">
-            <field name="name">Credit Note</field>
+        </record>
+
+        <record id="action_account_invoice_refund" model="ir.actions.act_window">
+            <field name="name">Refund</field>
             <field name="res_model">account.invoice.refund</field>
             <field name="view_type">form</field>
             <field name="view_mode">tree,form</field>
-           <field name="view_id" ref="view_account_invoice_refund"/> 
+           <field name="view_id" ref="view_account_invoice_refund"/>
            <field name="target">new</field>
         </record>
+
+
     </data>
-</openerp>     
\ No newline at end of file
+</openerp>