changeset db9e12d44720 in trytond:6.2 details: https://hg.tryton.org/trytond?cmd=changeset&node=db9e12d44720 description: Dumps Dict values in UTF-8 instead of ASCII
This is how they are stored in the database and so we must use also the UTF-8 version when using unaccent to properly remove the accents. issue11418 (grafted from db29f8a10314f48f68be5b68ec075ae4f37edb2f) diffstat: trytond/model/fields/dict.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diffs (13 lines): diff -r a760d1b53d3d -r db9e12d44720 trytond/model/fields/dict.py --- a/trytond/model/fields/dict.py Sat Apr 16 11:25:38 2022 +0200 +++ b/trytond/model/fields/dict.py Mon Apr 18 19:40:01 2022 +0200 @@ -15,7 +15,8 @@ # Use canonical form dumps = partial( - json.dumps, cls=JSONEncoder, separators=(',', ':'), sort_keys=True) + json.dumps, cls=JSONEncoder, separators=(',', ':'), sort_keys=True, + ensure_ascii=False) class Dict(Field):