diff options
| author | qsm-odoo <qsm@odoo.com> | 2020-12-22 11:17:56 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-12-24 13:21:20 +0000 |
| commit | dca6d7382e5d84997648952d442ad77df5d6ee82 (patch) | |
| tree | 08910333d0eae0233f9f41c2372510cd33af9cb3 /addons/web_editor/static/src/xml/wysiwyg.xml | |
| parent | d31a86cead03623c375f4162324a6d1872cad6a3 (diff) | |
[FIX] web_editor: stop suggesting shapes for model-related images
Those kind of images use a specific route (/web_editor/shape/...) to
be fetched. While waiting for a more complete solution to maybe handle
them for model-related images, this commit only allows their use for
images in views and HTML fields.
closes odoo/odoo#63682
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/xml/wysiwyg.xml')
| -rw-r--r-- | addons/web_editor/static/src/xml/wysiwyg.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/xml/wysiwyg.xml b/addons/web_editor/static/src/xml/wysiwyg.xml index 96823fde263..7beb2db03c8 100644 --- a/addons/web_editor/static/src/xml/wysiwyg.xml +++ b/addons/web_editor/static/src/xml/wysiwyg.xml @@ -179,7 +179,7 @@ <select class="custom-select o_we_search_select"> <option value="all">All</option> <option value="database">My Images</option> - <option value="media-library">Illustrations</option> + <option t-if="widget.options.useMediaLibrary" value="media-library">Illustrations</option> </select> </div> </t> |
