#
##############################################################################
-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):
"""
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.
"""
<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>
<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"