[IMP]: account_voucher: Minor improvement for button icon
authorATP (OpenERP) <>
Thu, 4 Mar 2010 05:29:05 +0000 (10:59 +0530)
committerrpa (Open ERP) <rpa@openerp.co.in>
Thu, 4 Mar 2010 05:29:05 +0000 (10:59 +0530)
bzr revid: rpa@openerp.co.in-20100304052905-mr0ycuha4tuyxu4j

addons/account_voucher/wizard/account_voucher_open.py
addons/account_voucher/wizard/account_voucher_open_view.xml

index 5c3448e..508a2d1 100644 (file)
 #
 ##############################################################################
 
-import time
-import netsvc
+from mx.DateTime import RelativeDateTime
 from osv import fields, osv
+from tools import config
 import ir
-import pooler
 import mx.DateTime
-from mx.DateTime import RelativeDateTime
-from tools import config
+import netsvc
+import pooler
+import time
 
 class account_voucher_open(osv.osv_memory):
     """
@@ -47,7 +47,7 @@ class account_voucher_open(osv.osv_memory):
         Open account voucher form.
         @param cr: the current row, from the database cursor.
         @param uid: the current user’s ID for security checks.
-        @param id: account voucher open’s ID or list of IDs if we want more than one.
+        @param id: List of account voucher open’s IDs.
         @param return:dictionary of account voucher on  given state ,type and account period id.
          """
         
index c3ef1ac..5e71b20 100644 (file)
                     <group colspan="4" col="6">
                                <label string ="" colspan="2"/>
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
-                       <button string="Open Voucher Entries" name="_action_open_window" type="object"/>
+                       <button icon="gtk-open" string="Open Voucher Entries" name="_action_open_window" type="object"/>
                        </group>
                </form>
             </field>
         </record>
+        
         <record id="action_account_voucher_open" model="ir.actions.act_window">
             <field name="name">Open a Voucher Entry</field>
             <field name="res_model">account.voucher.open</field>
@@ -29,6 +30,7 @@
            <field name="view_id" ref="view_account_voucher_open_form"/> 
            <field name="target">new</field>
         </record>
+        
         <menuitem 
                action="action_account_voucher_open" 
                id="menu_wizard_account_voucher_open"