[FIX]fix bug issue.
authorVidhin Mehta (OpenERP) <vme@tinyerp.com>
Tue, 3 Jan 2012 08:43:51 +0000 (14:13 +0530)
committerVidhin Mehta (OpenERP) <vme@tinyerp.com>
Tue, 3 Jan 2012 08:43:51 +0000 (14:13 +0530)
lp bug: https://launchpad.net/bugs/910767 fixed

bzr revid: vme@tinyerp.com-20120103084351-wwct754cke2b1n50

addons/web/static/src/js/formats.js

index 37d1e4c..2620bb4 100644 (file)
@@ -254,6 +254,11 @@ openerp.web.format_cell = function (row_data, column, value_if_empty, process_mo
         attrs = column.modifiers_for(row_data);
     }
     if (attrs.invisible) { return ''; }
+    
+    if(column.type === "boolean")
+        return _.str.sprintf('<input type="checkbox" %s disabled="disabled" />',
+                 row_data[column.id].value ? 'checked="checked"':'');
+
     if (column.tag === 'button') {
         return _.template('<button type="button" title="<%-title%>" <%=additional_attributes%> >' +
             '<img src="<%-prefix%>/web/static/src/img/icons/<%-icon%>.png" alt="<%-alt%>"/>' +