summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/view_list.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-11-13 14:18:06 +0100
committerXavier Morel <xmo@openerp.com>2012-11-13 14:18:06 +0100
commit9fcde051685d49dc6e1cc7fc6c9b90c8efe5974b (patch)
tree009cfa2cbc661e7250d5d415193ad9d1fead2727 /addons/web/static/src/js/view_list.js
parenta379a62d88aafc4f1f4b5701b58bbc85909115bf (diff)
[FIX] clicking on checkbox (boolean field) of list view should correctly trigger whatever the row action is
replaced @disabled checkboxes for boolean fields by @readonly + alpha (50%), as disabled input do not generate *any* event. Not default action (of course) but not e.g. a click either, whether delegated or bound directly on the element, there's no way at all to see if e.g. a user has clicked on a disabled checkbox or radio. lp bug: https://launchpad.net/bugs/1013569 fixed bzr revid: xmo@openerp.com-20121113131806-7fhog1f96gxnjr67
Diffstat (limited to 'addons/web/static/src/js/view_list.js')
-rw-r--r--addons/web/static/src/js/view_list.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js
index 321faf40c0f..700c126d68d 100644
--- a/addons/web/static/src/js/view_list.js
+++ b/addons/web/static/src/js/view_list.js
@@ -2156,7 +2156,7 @@ instance.web.list.Boolean = instance.web.list.Column.extend({
* @private
*/
_format: function (row_data, options) {
- return _.str.sprintf('<input type="checkbox" %s disabled="disabled"/>',
+ return _.str.sprintf('<input type="checkbox" %s readonly="readonly"/>',
row_data[this.id].value ? 'checked="checked"' : '');
}
});