diff options
| author | qsm-odoo <qsm@odoo.com> | 2016-05-23 15:18:03 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2016-05-23 17:08:50 +0200 |
| commit | d4f8096790e3a76e3219d37ea17a7154b426d2fe (patch) | |
| tree | fe0508091613ce801d381958c2390be38a3d9cad /addons/web/static/src/xml | |
| parent | 865ccfe636f9ce51cde701752e8938a5ecabad25 (diff) | |
[FIX] web,base: m2o empty name results
M2O use the autocomplete lib to display its content. The problem is
that if a result is empty (or only composed of whitespaces), a
divider is displayed in the dropdown.
Commit 1d9f7d279a74aaf6aaf25f91e2313b23b4122827 was fixing this by only displaying non-empty
name results... but it did not work as many models implement the
name_search method the wrong way.
The new solution is to add a default display for record values which
are empty strings, at the right places in the webclient components.
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 594ccfdf58e..a75e4d994ed 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -750,7 +750,7 @@ <t t-name="FieldMany2ManyTag"> <t t-foreach="elements" t-as="el"> <span t-attf-class="badge dropdown #{'o_tag_color_' + (el['color'] || 0)}" t-att-data-color="(el['color'] || 0)" t-att-data-index="el_index" t-att-data-id="el['id']"> - <span class="o_badge_text"><t t-esc="el['display_name']"/></span> + <span class="o_badge_text"><t t-raw="el['display_name']"/></span> <span t-if="!readonly" class="fa fa-times o_delete"/> </span> </t> @@ -1120,7 +1120,7 @@ <div class="o_export_format"/> </div> </div> - + <div class="o_export_panel"> <div class="o_left_panel"> <h4>Available fields</h4> |
