From 0a0a108969d40c158df8ed54910fbc32f7ac9cf4 Mon Sep 17 00:00:00 2001 From: Nicolas Bayet Date: Wed, 8 Sep 2021 09:11:33 +0000 Subject: [PATCH] [FIX] web_editor: use the proper serialize method Use the method serializeNode of the editor rather than directly the one from utils in order to only serialize when the collaboration is active. closes odoo/odoo#76143 Signed-off-by: David Monjoie (dmo) --- addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js b/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js index bb0180e2817..bafef1486c5 100644 --- a/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js +++ b/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js @@ -904,7 +904,7 @@ export class OdooEditor extends EventTarget { type: 'add', append: 1, id: node.oid, - node: serializeNode(node), + node: this.serializeNode(node), })), id: this._generateId(), clientId: this.clientId,