diff options
| -rw-r--r-- | odoo/tests/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odoo/tests/common.py b/odoo/tests/common.py index 2abeb7bd3a8..dda4eac078e 100644 --- a/odoo/tests/common.py +++ b/odoo/tests/common.py @@ -1810,8 +1810,8 @@ class Form(object): '<=': operator.le, '>=': operator.ge, '>': operator.gt, - 'in': lambda a, b: a in b, - 'not in': lambda a, b: a not in b + 'in': lambda a, b: (a in b) if isinstance(b, (tuple, list)) else (b in a), + 'not in': lambda a, b: (a not in b) if isinstance(b, (tuple, list)) else (b not in a), } def _get_context(self, field): c = self._view['contexts'].get(field) |
