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