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

This commit is contained in:
etenesaca 2014-05-20 14:58:40 -05:00
parent 040c93026a
commit 49657b28e6
1 changed files with 5 additions and 0 deletions

View File

@ -3394,6 +3394,11 @@ instance.web.form.CompletionFieldMixin = {
classname: 'oe_m2o_dropdown_option'
});
}
else if (values.length == 0)
values.push({
label: "<center><i>" + _t("No results to show...") + "</i></center>",
action: function() {},
});
return values;
});