[FIX]Fixed code for export xls null values should not shown in spreadsheet.
authorKunal Chavda (OpenERP) <kch@tinyerp.com>
Thu, 10 Nov 2011 13:09:50 +0000 (18:39 +0530)
committerKunal Chavda (OpenERP) <kch@tinyerp.com>
Thu, 10 Nov 2011 13:09:50 +0000 (18:39 +0530)
lp bug: https://launchpad.net/bugs/885117 fixed

bzr revid: kch@tinyerp.com-20111110130950-ap52c2x6fgklkuz2

addons/web/controllers/main.py

index 6f72d83..7286864 100644 (file)
@@ -1417,6 +1417,7 @@ class ExcelExport(Export):
             for cell_index, cell_value in enumerate(row):
                 if isinstance(cell_value, basestring):
                     cell_value = re.sub("\r", " ", cell_value)
+                if cell_value is False: cell_value = None
                 worksheet.write(row_index + 1, cell_index, cell_value, style)
 
         fp = StringIO()