changeset 8f09a6ce56ff in proteus:5.0
details: https://hg.tryton.org/proteus?cmd=changeset&node=8f09a6ce56ff
description:
Manage None as value of PYSON In
issue11280
review393771002
(grafted from bf883a4cc971cbb9c4654e3685aa54af56ab2548)
diffstat:
proteus/pyson.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 8f166510fec3 -r 8f09a6ce56ff proteus/pyson.py
--- a/proteus/pyson.py Wed Mar 02 00:49:23 2022 +0100
+++ b/proteus/pyson.py Sun Mar 06 18:01:59 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):