projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0edad4d
)
[FIX]Fixed code for export xls null values should not shown in spreadsheet.
author
Kunal Chavda (OpenERP)
<kch@tinyerp.com>
Thu, 10 Nov 2011 13:09:50 +0000
(18:39 +0530)
committer
Kunal 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
patch
|
blob
|
history
diff --git
a/addons/web/controllers/main.py
b/addons/web/controllers/main.py
index
6f72d83
..
7286864
100644
(file)
--- a/
addons/web/controllers/main.py
+++ b/
addons/web/controllers/main.py
@@
-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()