diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js index 97c4abda05f..678d1684073 100644 --- a/addons/web/static/src/js/view_list.js +++ b/addons/web/static/src/js/view_list.js @@ -2327,7 +2327,7 @@ instance.web.list.Binary = instance.web.list.Column.extend({ text = _.str.sprintf(_t("Download \"%s\""), instance.web.format_value( row_data[this.filename].value, {type: 'char'})); } - return _.template('<%-text%> (<%-size%>)', { + return _.template('<%-text%> (<%-size%>)')({ text: text, href: download_url, size: instance.web.binary_to_binsize(value), @@ -2356,7 +2356,7 @@ instance.web.list.ProgressBar = instance.web.list.Column.extend({ */ _format: function (row_data, options) { return _.template( - '<%-value%>%', { + '<%-value%>%')({ value: _.str.sprintf("%.0f", row_data[this.id].value || 0) }); } @@ -2427,7 +2427,7 @@ instance.web.list.Url = instance.web.list.Column.extend({ var value = row_data[this.id].value; if (value) { - return _.template("<%-text%>", { + return _.template("<%-text%>")({ href: value.trim().replace(this.PROTOCOL_REGEX, '//'), text: value });