changeset e94fef3e95da in tryton:6.0
details: https://hg.tryton.org/tryton?cmd=changeset&node=e94fef3e95da
description:
        Manage None as value of PYSON In

        issue11280
        review393771002
        (grafted from 9a5bf563940bed505f48c9d413c8c7b66fa4f782)
diffstat:

 tryton/pyson.py |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (15 lines):

diff -r b9f2ce1b8550 -r e94fef3e95da tryton/pyson.py
--- a/tryton/pyson.py   Wed Feb 16 21:57:58 2022 +0100
+++ b/tryton/pyson.py   Sun Mar 06 18:02:00 2022 +0100
@@ -509,7 +509,10 @@
 
     @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):

Reply via email to