diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-06-20 16:25:04 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-06-21 12:58:03 +0200 |
| commit | a9366de8f90ea4106d306c585043a42f089c86d4 (patch) | |
| tree | 06009648ba0d15e06c6edaf1328fb613d620cb88 /addons/web_editor/static/src/js/widgets | |
| parent | bf64efb5a0684bd61f3c2d520253721fe98c27c4 (diff) | |
[FIX] web_editor: do not show cropped images in media dialog
Cropped image attachment were not meant to appear in the media dialog,
only original ones.
Diffstat (limited to 'addons/web_editor/static/src/js/widgets')
| -rw-r--r-- | addons/web_editor/static/src/js/widgets/widgets.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/widgets/widgets.js b/addons/web_editor/static/src/js/widgets/widgets.js index ec747badabb..e04b02ade6f 100644 --- a/addons/web_editor/static/src/js/widgets/widgets.js +++ b/addons/web_editor/static/src/js/widgets/widgets.js @@ -363,6 +363,7 @@ var ImageWidget = MediaWidget.extend({ if (needle && needle.length) { domain.push('|', ['datas_fname', 'ilike', needle], ['name', 'ilike', needle]); } + domain.push('!', ['datas_fname', '=like', '%.crop'], '!', ['name', '=like', '%.crop']); return this._rpc({ model: 'ir.attachment', method: 'search_read', |
