diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-08-30 11:10:54 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-08-30 11:15:43 +0200 |
| commit | a49fdd86b3e372bcc330ff3821bc63163f6b6b1b (patch) | |
| tree | e9e603d0712df2af212abed9dfe7722752b35e88 /addons/web/static/src/js/fields/relational_fields.js | |
| parent | 68e24396a310ffca2a188c4c7d165dde7e4af7e8 (diff) | |
[FIX] web: properly show kanban tags' texts
Previous tag design was a colored block with a text on hover. This
text was explicitely html-escaped as put as the 'title' attribute
value.
Since https://github.com/odoo/odoo/commit/89cbbe3b0d6800a89b4385965151ed368659424f:
The text is now always shown and is thus naturally html-escaped by
the jQuery `text` method... and should thus not be explicitely escaped
before.
Diffstat (limited to 'addons/web/static/src/js/fields/relational_fields.js')
| -rw-r--r-- | addons/web/static/src/js/fields/relational_fields.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/relational_fields.js b/addons/web/static/src/js/fields/relational_fields.js index 54e74c408ed..301717d985d 100644 --- a/addons/web/static/src/js/fields/relational_fields.js +++ b/addons/web/static/src/js/fields/relational_fields.js @@ -1633,7 +1633,7 @@ var KanbanFieldMany2ManyTags = FieldMany2ManyTags.extend({ this.$el.empty().addClass('o_field_many2manytags o_kanban_tags'); _.each(this.value.data, function (m2m) { var $tag = $('<span>') - .text( _.str.escapeHTML(m2m.data.display_name)) + .text(m2m.data.display_name) .prepend('<span>') .appendTo(self.$el); if (self.colorField in m2m.data) { |
