[FIX] account_voucher: Can not search vouchers on bank/cash statement lines

lp bug: https://launchpad.net/bugs/727083 fixed

bzr revid: ara@tinyerp.com-20110301110440-p9geu1knpp24awus
This commit is contained in:
ARA (OpenERP)
2011-03-01 16:34:40 +05:30
parent 9c7afeb2c8
commit 281078f79c
+1 -1
View File
@@ -125,7 +125,7 @@ class account_voucher(osv.osv):
result = mod_obj.get_object_reference(cr, uid, 'account_voucher', 'view_vendor_payment_form')
result = result and result[1] or False
view_id = result
if not view_id and context.get('line_type', False):
if not view_id and view_type == 'form' and context.get('line_type', False):
if context.get('line_type', False) == 'customer':
result = mod_obj.get_object_reference(cr, uid, 'account_voucher', 'view_vendor_receipt_form')
else: