changeset 0bc786fbba7d in tryton:5.0
details: https://hg.tryton.org/tryton?cmd=changeset&node=0bc786fbba7d
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 e998c4ed473f -r 0bc786fbba7d tryton/pyson.py
--- a/tryton/pyson.py Tue Mar 01 19:25:34 2022 +0100
+++ b/tryton/pyson.py Sun Mar 06 18:02:00 2022 +0100
@@ -489,7 +489,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):