From 95d4c115d9bf7342c29e84cb0a3ba136783ed86c Mon Sep 17 00:00:00 2001 From: Cesar Lage Date: Thu, 5 May 2016 18:00:03 -0400 Subject: [PATCH] [REF] moving variable name to direct assign in the template params --- web_widget_radio_tree/static/src/js/widget.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web_widget_radio_tree/static/src/js/widget.js b/web_widget_radio_tree/static/src/js/widget.js index c0d41658..a473ac53 100644 --- a/web_widget_radio_tree/static/src/js/widget.js +++ b/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( ' readonly="readonly">', { - name: name, + name: options.model + '_' + this.id, checked: row_data[this.id].value ? 'checked' : '', }); }