Excel - export numbers as float instead of unicode

Bug #1001668 reported by Ferdinand
10
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

Revision history for this message
Ferdinand (office-chricar) wrote :
summary: - Excel - export numbers as unicode
+ Excel - export numbers as float instead of unicode
Revision history for this message
Ferdinand (office-chricar) wrote :

please also make sure that the decimal precision of the column is set correctly

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

You already reported this last September and I already told you back then that this was a server issue of the export API, the web client will not do anything about it and we will not add random shit to the export code to fix server issues.

Revision history for this message
Carlos Liebana (carlos-liebana) wrote :

BTW, for one of our customers we have implemented exporting (customs reports) using this python libraries [1] instead of the csv one coming by default in OpenERP.

Here in Spain, CSV exports are not as useful as they should be because number formats (by default with . instead of our standar ,)

[1] http://www.python-excel.org/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.