diff options
| author | len-odoo <len@odoo.com> | 2018-11-21 12:19:03 +0000 |
|---|---|---|
| committer | len-odoo <len@odoo.com> | 2018-11-29 07:58:40 +0000 |
| commit | a48a4b1c0b2a734e3adad1c4a296595be003b1df (patch) | |
| tree | 42eb99399de30158e089e3e62ec2b82312c63723 /addons/web/static/src/js/fields | |
| parent | 05d31187d4ede241b0fe48d27d4020440e207e23 (diff) | |
[FIX] web_editor: remove embed video option when composing an email
Embedding a video can't work because it embeds an iframe, which is not supported
by most email clients for security reasons.
(What happens when Gmail shows embedded videos in displayed emails, is that you
send a link in the email body, and it is at rendering that Gmail adds the iframe
into the page.)
In true bugfix fashion, we hide the button.
When the "res_model" is "mail.compose.message", we generate a widget with the
noVideo option.
Essentially a foward-port of v11 commit: 264f89f63f89678b01a75a20b508dd10018b00d8
opw 1905497
closes odoo/odoo#28912
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions
