bzr revid: fp@tinyerp.com-20090122232958-me3rqmunfkp82ptz
This commit is contained in:
Fabien Pinckaers 2009-01-23 00:29:58 +01:00
parent 3c0cf6275a
commit 54d7c08eba
2 changed files with 3 additions and 3 deletions

View File

@ -369,7 +369,7 @@ class res_partner_bank(osv.osv):
result = []
type_ids = bank_type_obj.search(cr, uid, [])
bank_types = bank_type_obj.browse(cr, uid, type_ids)
bank_types = bank_type_obj.browse(cr, uid, type_ids, context=context)
for bank_type in bank_types:
result.append((bank_type.code, bank_type.name))
return result

View File

@ -255,9 +255,9 @@ class expression(object):
else:
params = []
if (((right == False) and (type(right)==bool)) or (right is None)) and (operator == '='):
query = '%s IS NULL' % left
query = '%s.%s IS NULL' % (table._table, left)
elif (((right == False) and (type(right)==bool)) or right is None) and (operator in ['<>', '!=']):
query = '%s IS NOT NULL' % left
query = '%s.%s IS NOT NULL' % (table._table, left)
else:
if left == 'id':
query = '%s.id %s %%s' % (table._table, operator)