From 49657b28e6915c46342a509e7b4c1e62645e16d4 Mon Sep 17 00:00:00 2001 From: etenesaca Date: Tue, 20 May 2014 14:58:40 -0500 Subject: [PATCH] Now when a search is conducted in the fields and not m2o results have a message saying "No results to show" since the show nothing will display the user is confused --- addons/web/static/src/js/view_form.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 4c4ba6f004c..582ddd7597e 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -3394,6 +3394,11 @@ instance.web.form.CompletionFieldMixin = { classname: 'oe_m2o_dropdown_option' }); } + else if (values.length == 0) + values.push({ + label: "
" + _t("No results to show...") + "
", + action: function() {}, + }); return values; });