[Imp] Allow expressions: ".. child_of, 1" , not only list(1)
bzr revid: p_christ@hol.gr-20091008195856-iyhz4abq51p871ip
This commit is contained in:
parent
bb2722ed64
commit
5ad6ee5223
|
@ -189,6 +189,8 @@ class expression(object):
|
|||
if operator == 'child_of':
|
||||
if isinstance(right, basestring):
|
||||
ids2 = [x[0] for x in field_obj.name_search(cr, uid, right, [], 'like', limit=None)]
|
||||
elif isinstance(right, (int, long)):
|
||||
ids2 = list([right])
|
||||
else:
|
||||
ids2 = list(right)
|
||||
|
||||
|
|
Loading…
Reference in New Issue