[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user