export as Excel - numbers show up as text

Bug #675250 reported by Ferdinand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Confirmed
Low
OpenERP R&D Web Team

Bug Description

see attachment

Revision history for this message
Ferdinand (office-chricar) wrote :
Revision history for this message
Ferdinand (office-chricar) wrote :

my server LANG settings
set |grep LANG
LANG=en_US.UTF-8

fresh db with English only installed

affects: openobject-client-web → openobject-server
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

This is indeed a web client error, as the server only returns the raw data to the clients, and the GTK handles this more correctly I think: re-assigned to correct project.
See in web, in file addons/openerp/controllers/impex.py in Impex.export_data method.

affects: openobject-server → openobject-client-web
Changed in openobject-client-web:
assignee: nobody → OpenERP SA's Web Client R&D (openerp-dev-web)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Ferdinand (office-chricar) wrote :

@Olivier
in GTK/Linux there is no "Open in Excel"
As this seems to be implemented in WEB could that feature go into GTK too ?
it should open the export in OpenOffice or LibreOffice

Revision history for this message
Navrang Oza (noz-tiny) wrote :

Hello Ferdinand,

Not getting your exact problem.
GTK dont have the problem because GTK doesn't support Excel.

So please describe in detail.

Thanks.

Revision history for this message
t.o (emailbox4oerp) wrote :

Hello,

Please Check Bug #534309 it's probably the same

Revision history for this message
Ferdinand (office-chricar) wrote :

http://pypi.python.org/pypi/xlwt is your friend - it works well with web client, so it should do also with any other client

this is a generic server side solution and xls can be open with whatever program is capable o the client side.

Revision history for this message
Navrang Oza (noz-tiny) wrote :

Hello Ferdinand,

I checked with CSV, Excel mode of export.
Both are displaying same result.

So can you provide more detail to reproduce this bug please ?
Thanks.

Changed in openobject-client-web:
status: Confirmed → Incomplete
Revision history for this message
Ferdinand (office-chricar) wrote :

r 3950
No more options to produce a xls file
see attachment
Hope you check for xlwt on the server

needless to say that opening a csv file is a pain
neither date fields (sometimes) nor numbers (all decimals) are opened correctly in OO without modifying the settings for each column

Revision history for this message
Ferdinand (office-chricar) wrote :

sorrry, found the option at the bottom of the window ( not visible on my laptop)
that's why I pledged for a control panel grouping all elemetns for export together

 shouldn't execl be default if available ?

Navrang Oza (noz-tiny)
Changed in openobject-client-web:
status: Incomplete → Invalid
Revision history for this message
xrg (xrg) wrote : Re: [Bug 675250] Re: [6.0RC1] export as Excel - numbers show up as text

On Thursday 25 November 2010, you wrote:
> sorrry, found the option at the bottom of the window ( not visible on my
> laptop) that's why I pledged for a control panel grouping all elemetns for
> export together
>
> shouldn't execl be default if available ?
>
My humble vote against.

I prefer to have csv, it's all about open standards. At the end of the day, it
is all a personal opinion.

About the first part of the question: can you check if the numbers formatting
could have to do with the decimal separator? (but I think your locale wouldn't
trigger that, does it?)

Revision history for this message
Ferdinand (office-chricar) wrote : Re: [6.0RC1] export as Excel - numbers show up as text

it seems to be possible to create open standards too (using python 3.x)
http://pypi.python.org/pypi/ezodf

until then I would prefer to have xls expport available - users can usually not handle csv files.

and it works nicely in Koo (v5 and v6)

Revision history for this message
Ferdinand (office-chricar) wrote :

in 7.0 numeric cells are still exported as strings - what a shame

class ExcelExport(Export):

the cell_value is a string and should be a number for integers,float to allow calculations in Excel

a brute force solution is attached

Changed in openobject-client-web:
status: Invalid → New
summary: - [6.0RC1] export as Excel - numbers show up as text
+ export as Excel - numbers show up as text
affects: openobject-client-web → openerp-web
Changed in openerp-web:
status: New → Confirmed
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.