summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/widgets
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-10-22 15:39:05 +0200
committerChristophe Simonis <chs@odoo.com>2018-10-22 16:59:51 +0200
commitb81c2bce846c94b5695d680ebbc30f1cfe51e614 (patch)
tree385190eb54adfbcdf8ff437d2cc667ddd1013718 /addons/web_editor/static/src/js/widgets
parent933165ec3afa0676de4b2f3662c4c1bb2f97efc5 (diff)
parent3c108977c1e7d9361894c38bcd253030e8097479 (diff)
[MERGE] forward port branch saas-11.4 up to 3c108977c1e
Diffstat (limited to 'addons/web_editor/static/src/js/widgets')
-rw-r--r--addons/web_editor/static/src/js/widgets/widgets.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/widgets/widgets.js b/addons/web_editor/static/src/js/widgets/widgets.js
index 0edc1adb9b9..7c33ab53b97 100644
--- a/addons/web_editor/static/src/js/widgets/widgets.js
+++ b/addons/web_editor/static/src/js/widgets/widgets.js
@@ -368,7 +368,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']);
+ domain.push('|', ['datas_fname', '=', false], '!', ['datas_fname', '=like', '%.crop'], '!', ['name', '=like', '%.crop']);
return this._rpc({
model: 'ir.attachment',
method: 'search_read',