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

        issue11280
        review393771002
diffstat:

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

diffs (15 lines):

diff -r 209131c90254 -r 9a5bf563940b tryton/pyson.py
--- a/tryton/pyson.py   Sun Mar 06 13:39:09 2022 +0100
+++ b/tryton/pyson.py   Sun Mar 06 18:02:00 2022 +0100
@@ -525,7 +525,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