Allow None in child_of operator
issue3190 review844002
This commit is contained in:
1 parent
d53f4ce511
commit
929c2c135d
1 file changed
+2
-2
@@ -1383,7 +1383,7 @@ class ModelSQL(ModelStorage):
|
||||
ids2 = map(int, Target.search([
|
||||
('rec_name', 'ilike', domain[i][2]),
|
||||
], order=[]))
|
||||
elif isinstance(domain[i][2], (int, long)):
|
||||
elif not isinstance(domain[i][2], list):
|
||||
ids2 = [domain[i][2]]
|
||||
else:
|
||||
ids2 = domain[i][2]
|
||||
@@ -1479,7 +1479,7 @@ class ModelSQL(ModelStorage):
|
||||
ids2 = map(int, Field.search([
|
||||
('rec_name', 'like', domain[i][2]),
|
||||
], order=[]))
|
||||
elif isinstance(domain[i][2], (int, long)):
|
||||
elif not isinstance(domain[i][2], list):
|
||||
ids2 = [domain[i][2]]
|
||||
else:
|
||||
ids2 = domain[i][2]
|
||||
|
||||
Reference in new issue
Block a user