changeset e948a83f7767 in tryton:6.2
details: https://hg.tryton.org/tryton?cmd=changeset&node=e948a83f7767
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 77885236427d -r e948a83f7767 tryton/pyson.py
--- a/tryton/pyson.py Wed Feb 16 21:57:32 2022 +0100
+++ b/tryton/pyson.py Sun Mar 06 18:02:00 2022 +0100
@@ -515,7 +515,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):