Optimized search fields from m2o

Added translation of the message
Now this style of message in a CSS class and not use HTML tags
This commit is contained in:
etenesaca 2014-05-20 21:16:52 -05:00
parent 1ce6322bfc
commit bd8b2e9002
3 changed files with 13 additions and 1 deletions

View File

@ -1292,6 +1292,13 @@ msgstr "Agrupar por: %s"
msgid "No data provided."
msgstr "No se han facilitado datos"
#. module: web
#. openerp-web
#: code:addons/web/static/src/js/view_form.js:3399
#, python-format
msgid "No results to show..."
msgstr "No hay resultados para mostrar..."
#. module: web
#. openerp-web
#: code:addons/web/static/src/js/view_list.js:345

View File

@ -2409,6 +2409,10 @@
.openerp .oe_form_field_many2one input {
padding-right: 13px;
}
.openerp.ui-autocomplete li.oe_m2o_dropdown_option_no_results_to_show a {
font-style: italic;
text-align: center;
}
.openerp.ui-autocomplete li.oe_m2o_dropdown_option a {
font-style: italic;
padding-left: 2em;

View File

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