From 837cefb6591ac91f7f81adeccce04e57d581f12f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 6 Mar 2022 18:02:00 +0100 Subject: [PATCH] Manage None as value of PYSON In issue11280 review393771002 --- tryton/pyson.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tryton/pyson.py b/tryton/pyson.py index 3caf79be1b..59c6a5ce9e 100644 --- a/tryton/pyson.py +++ b/tryton/pyson.py @@ -525,7 +525,10 @@ class In(PYSON): @staticmethod def eval(dct, context): - return dct['k'] in dct['v'] + if dct['v']: + return dct['k'] in dct['v'] + else: + return False class Date(PYSON):