Skip to content
Snippets Groups Projects
Commit 2924d0e9 authored by Anh Thao Pham (pta)'s avatar Anh Thao Pham (pta)
Browse files

[FIX] web_editor: fix invisible document links when sent via email


- Go to any record with a chatter (i.e. a SO)
- Use full composer to send a message
- In editor, use "File/Image" option to upload a document to the body of the message
- Upload any document (i.e. a PDF file)
- PDF icon will appear in the message
- Send the message
In the chatter, PDF icon appear in the message, allowing to download the file.
But in the sent email, the link is present but it is not visible. There is no icon.

Such link is a <a> element with "o_image" class. When converting to inline, an <img>
element is added with an icon depending on file mime-type.
However, when getting its value, a cleaning is executed, removing this added <img>.

It should not be cleaned when converting to inline.

opw-2558602

closes odoo/odoo#75133

Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent ceef1983
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment