← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-727083-ara into lp:openobject-addons

 

Ashvin Rathod (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-727083-ara into lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  #727083 Can not search vouchers on bank/cash statement lines
  https://bugs.launchpad.net/bugs/727083

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-727083-ara/+merge/51727

Hello,

fix the bug: account_voucher- Can not search vouchers on bank/cash statement lines
https://bugs.launchpad.net/openobject-addons/+bug/727083

Thanks,
ara
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-727083-ara/+merge/51727
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-727083-ara.
=== modified file 'account_voucher/account_voucher.py'
--- account_voucher/account_voucher.py	2011-01-28 13:32:54 +0000
+++ account_voucher/account_voucher.py	2011-03-01 11:07:57 +0000
@@ -125,7 +125,7 @@
                 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:


Follow ups