From 281078f79cac6b89e18f181162e86b2ab0e81663 Mon Sep 17 00:00:00 2001 From: "ARA (OpenERP)" Date: Tue, 1 Mar 2011 16:34:40 +0530 Subject: [PATCH] [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 --- addons/account_voucher/account_voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index 5b662a960c5..28b1924b518 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -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: