*little glitch on search function corrected
authorqdp <qdp@tinyerp.com>
Tue, 30 Sep 2008 11:34:57 +0000 (13:34 +0200)
committerqdp <qdp@tinyerp.com>
Tue, 30 Sep 2008 11:34:57 +0000 (13:34 +0200)
bzr revid: qdp@tinyerp.com-20080930113457-8tkt7zidsha09zbu

addons/base_iban/base_iban.py

index 598e6af..870d7cb 100644 (file)
@@ -54,7 +54,8 @@ class res_partner_bank(osv.osv):
                 order, context=context, count=count)
         if filter(lambda x:x[0]=='acc_number' ,args):
             iban_value = filter(lambda x:x[0]=='acc_number' ,args)[0][2]
-            args1 = [('iban','ilike',iban_value)]
+            args1 =  filter(lambda x:x[0]!='acc_number' ,args)
+            args1 += [('iban','ilike',iban_value)]
             res += super(res_partner_bank,self).search(cr, uid, args1, offset, limit,
                 order, context=context, count=count)
         return res