[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:
parent
0edad4d844
commit
f119de785c
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue