parent
3c0cf6275a
commit
54d7c08eba
|
@ -369,7 +369,7 @@ class res_partner_bank(osv.osv):
|
||||||
|
|
||||||
result = []
|
result = []
|
||||||
type_ids = bank_type_obj.search(cr, uid, [])
|
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:
|
for bank_type in bank_types:
|
||||||
result.append((bank_type.code, bank_type.name))
|
result.append((bank_type.code, bank_type.name))
|
||||||
return result
|
return result
|
||||||
|
|
|
@ -255,9 +255,9 @@ class expression(object):
|
||||||
else:
|
else:
|
||||||
params = []
|
params = []
|
||||||
if (((right == False) and (type(right)==bool)) or (right is None)) and (operator == '='):
|
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 ['<>', '!=']):
|
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:
|
else:
|
||||||
if left == 'id':
|
if left == 'id':
|
||||||
query = '%s.id %s %%s' % (table._table, operator)
|
query = '%s.id %s %%s' % (table._table, operator)
|
||||||
|
|
Loading…
Reference in New Issue