Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
7506 Prikazi

Hi , i have created a xlsx file and need to open as downloadable when i click on button in python how to achieve this ?

Avatar
Opusti

Do you have a solution for your problem ?

Best Answer

In python there is a package called cStringIO, which is used for buffering.write the xlsx file data to the buffer(encode using base64) variable and then write this value in the buffer variable to a binary field in openerp.

Avatar
Opusti
Avtor

Thanks for your reply, but my requirement is to display the file and not to store in database how can i achieve this

from where you are creating the xls file?can you give some more details? is it related to openerp?

Avtor

i am fetching the information from view class and creating the xlsx file

Best Answer

Take a look at the module that exports the current view to XLS:

https://code.launchpad.net/~domsense/web-addons/7.0-web_export_view

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
feb. 23
1932
1
mar. 15
5235
0
maj 23
66
2
sep. 24
3508
1
jan. 23
16916