Excel - export numbers as float instead of unicode
Bug #1001668 reported by
Ferdinand
This bug report is a duplicate of:
Bug #844569: Excel Export - provides numbers as characters.
Edit
Remove
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned | ||
Odoo Web (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
the attached diff produces the following output
FGF cell_val unicode Price / Unit
FGF cell_val unicode 0.08
indicating that number values are classified as unicode, hence show up in Excel as strings instead of numbers
trying to convert any unicode to float (which is only for demo purpose) creates correct excel number cells
the correct way would be to check the data type of the column (which must be available somewhere to right adjust numeric columns in the web client) and apply float(cell_value) only for these columns.
unfortunately my knowledge of the web client is to limited to find out the column format
To post a comment you must log in.
please also make sure that the decimal precision of the column is set correctly