[MERGE] fix for bug 626806 by xrg - i.e. [(x2m,in,[])] should match nothing
lp bug: https://launchpad.net/bugs/626806 fixed bzr revid: odo@openerp.com-20101203142342-2g5k64qoouuuxyti
This commit is contained in:
@@ -185,7 +185,7 @@ class expression(object):
|
||||
else:
|
||||
call_null = True
|
||||
|
||||
if right:
|
||||
if right is not False:
|
||||
if isinstance(right, basestring):
|
||||
ids2 = [x[0] for x in field_obj.name_search(cr, uid, right, [], operator, context=context, limit=None)]
|
||||
if ids2:
|
||||
@@ -234,7 +234,7 @@ class expression(object):
|
||||
self.__exp[i] = ('id', 'in', _rec_convert(ids2))
|
||||
else:
|
||||
call_null_m2m = True
|
||||
if right:
|
||||
if right is not False:
|
||||
if isinstance(right, basestring):
|
||||
res_ids = [x[0] for x in field_obj.name_search(cr, uid, right, [], operator, context=context)]
|
||||
if res_ids:
|
||||
|
||||
Reference in New Issue
Block a user