From d992fae0548c243643b094b8d8a7e11187b45110 Mon Sep 17 00:00:00 2001 From: abd-msyukyu-odoo Date: Sun, 22 Sep 2024 17:20:34 +0200 Subject: [PATCH] [IMP] mail: add a version to some html fields Embedded components will evolve and their metadata must sometimes be upgraded. This commit introduces an html attribute which will contain the version of the value of an HtmlField. See usage in Knowledge html migrations (i.e. transform deprecated "Behaviors" to "Embedded Components"). It is pretty costly to modify html through a standard Odoo upgrade, therefore these light tranformations will be done client-side to begin with. task-3672747 Co-authored-by: Damien Abeloos Co-authored-by: Adrien Schoffeniels Co-authored-by: Julien Banken Co-authored-by: Thomas Josse --- odoo/tools/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/tools/mail.py b/odoo/tools/mail.py index b6cc5df18621c..c122f90e13f50 100644 --- a/odoo/tools/mail.py +++ b/odoo/tools/mail.py @@ -60,7 +60,7 @@ def getaddresses(fieldvalues): ['style', 'data-o-mail-quote', 'data-o-mail-quote-node', # quote detection 'data-oe-model', 'data-oe-id', 'data-oe-field', 'data-oe-type', 'data-oe-expression', 'data-oe-translation-source-sha', 'data-oe-nodeid', - 'data-last-history-steps', 'data-oe-protected', 'data-embedded', 'data-embedded-editable', 'data-embedded-props', + 'data-last-history-steps', 'data-oe-protected', 'data-embedded', 'data-embedded-editable', 'data-embedded-props', 'data-oe-version', 'data-oe-transient-content', 'data-behavior-props', 'data-prop-name', # legacy editor 'data-publish', 'data-id', 'data-res_id', 'data-interval', 'data-member_id', 'data-scroll-background-ratio', 'data-view-id', 'data-class', 'data-mimetype', 'data-original-src', 'data-original-id', 'data-gl-filter', 'data-quality', 'data-resize-width',