Browse Source

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

pull/351/head
Cesar Lage 8 years ago
parent
commit
95d4c115d9
  1. 3
      web_widget_radio_tree/static/src/js/widget.js

3
web_widget_radio_tree/static/src/js/widget.js

@ -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' : '',
});
}

Loading…
Cancel
Save