mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[REF] moving variable name to direct assign in the template params
This commit is contained in:
@@ -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' : '',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user