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:
parent
040c93026a
commit
49657b28e6
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue