Skip to content

Commit

Permalink
[IMP] mail: add a version to some html fields
Browse files Browse the repository at this point in the history
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 <[email protected]>
Co-authored-by: Adrien Schoffeniels <[email protected]>
Co-authored-by: Julien Banken <[email protected]>
Co-authored-by: Thomas Josse <[email protected]>
  • Loading branch information
4 people committed Sep 30, 2024
1 parent 9f7bc40 commit d992fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odoo/tools/mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d992fae

Please sign in to comment.