[FIX]Fixed code for export xls null values should not shown in spreadsheet.

lp bug: https://launchpad.net/bugs/885117 fixed

bzr revid: kch@tinyerp.com-20111110130950-ap52c2x6fgklkuz2
This commit is contained in:
Kunal Chavda (OpenERP) 2011-11-10 18:39:50 +05:30
parent 0edad4d844
commit f119de785c
1 changed files with 1 additions and 0 deletions

View 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()