Skip to content
Snippets Groups Projects
Commit 18f25070 authored by Nicolas Bayet's avatar Nicolas Bayet
Browse files

[FIX] web_editor: write with string in update_checklist


Before this commit, when the user tried to update a checklist, there
was a traceback in `handle_history_divergence` because the `value` is a
byte sequence instead of a string.

opw-3158660
task-3165844

closes odoo/odoo#112098

X-original-commit: e3900dfe
Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
parent 3a40fa55
No related branches found
No related tags found
No related merge requests found
......@@ -175,7 +175,7 @@ class Web_Editor(http.Controller):
else:
return value
value = etree.tostring(htmlelem[0][0], encoding='utf-8', method='html')[5:-6]
value = etree.tostring(htmlelem[0][0], encoding='utf-8', method='html')[5:-6].decode("utf-8")
record.write({filename: value})
return value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment