mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] type error replacing separators and credits for fixing :)
This commit is contained in:
@@ -4,3 +4,4 @@ Authors
|
||||
Simone Orsi <simone.orsi@domsense.com> [simahawk]
|
||||
Lorenzo Battistini <lorenzo.battistini@agilebg.com>
|
||||
Stefan Rijnhart <stefan@therp.nl>
|
||||
Cristian Salamea <ovnicraft@gmail.com>
|
||||
|
||||
@@ -50,7 +50,7 @@ class ExcelExportView(ExcelExport):
|
||||
if isinstance(cell_value, basestring):
|
||||
cell_value = re.sub("\r", " ", cell_value)
|
||||
if re.match(m, cell_value):
|
||||
cell_value = float(cell_value.replace(separators['thousands_sep'],'')replace(separators['decimal_point'],'.'))
|
||||
cell_value = float(cell_value.replace(separators['thousands_sep'],'').replace(separators['decimal_point'],'.'))
|
||||
style = xlwt.easyxf(num_format_str='#,##0.00')
|
||||
if cell_value is False: cell_value = None
|
||||
worksheet.write(row_index + 1, cell_index, cell_value, style)
|
||||
|
||||
Reference in New Issue
Block a user