[REF] moving variable name to direct assign in the template params

This commit is contained in:
Cesar Lage
2016-05-05 18:00:03 -04:00
parent bbcc9c3135
commit 95d4c115d9

View File

@@ -6,10 +6,9 @@ openerp.web_widget_radio_tree = function (instance) {
instance.web.list.RadioTreeColumn = instance.web.list.Column.extend({
_format: function (row_data, options) {
var name = options.model + '_' + this.id;
return _.template(
'<input type="radio" name="<%-name%>" <%-checked%> readonly="readonly"></input>', {
name: name,
name: options.model + '_' + this.id,
checked: row_data[this.id].value ? 'checked' : '',
});
}