changeset e506032eeac9 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset;node=e506032eeac9
description:
Sort keys of PYSON XML value
The value must be constant because it is compared with the previous one.
issue8369
review257481004
diffstat:
trytond/convert.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r fd22052d3523 -r e506032eeac9 trytond/convert.py
--- a/trytond/convert.py Tue May 28 10:03:40 2019 +0200
+++ b/trytond/convert.py Thu May 30 09:37:52 2019 +0200
@@ -242,7 +242,7 @@
context.update(CONTEXT)
value = eval(eval_attr, context)
if pyson_attr:
- value = PYSONEncoder().encode(value)
+ value = PYSONEncoder(sort_keys=True).encode(value)
self.values[field_name] = value
else: