[MERGE] 577037: account_voucher: also allow matching payment line with bank, cash...
authorXavier ALT <xal@openerp.com>
Wed, 5 Dec 2012 15:09:12 +0000 (16:09 +0100)
committerXavier ALT <xal@openerp.com>
Wed, 5 Dec 2012 15:09:12 +0000 (16:09 +0100)
bzr revid: xal@openerp.com-20121205150912-spxph9qmbljj8xi9

addons/account_voucher/account_voucher.py

index fdb7385..a278f2e 100644 (file)
@@ -466,7 +466,7 @@ class account_voucher(osv.osv):
             account_type = 'receivable'
 
         if not context.get('move_line_ids', False):
-            domain = [('state','=','valid'), ('account_id.type', '=', account_type), ('reconcile_id', '=', False), ('partner_id', '=', partner_id), ('journal_id.type', 'not in', ('bank', 'cash'))]
+            domain = [('state','=','valid'), ('account_id.type', '=', account_type), ('reconcile_id', '=', False), ('partner_id', '=', partner_id)]
             ids = move_line_pool.search(cr, uid, domain, context=context)
         else:
             ids = context['move_line_ids']