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

        issue11280
        review393771002
diffstat:

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

diffs (15 lines):

diff -r 4ff32309fe0f -r bf883a4cc971 proteus/pyson.py
--- a/proteus/pyson.py  Sun Mar 06 13:48:44 2022 +0100
+++ b/proteus/pyson.py  Sun Mar 06 18:01:59 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