Odoo Help


open xlsx as download file

on 6/19/13, 5:55 AM 2,791 views

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

Do you have a solution for your problem ?

Gregory Thomas
on 2/19/14, 8:59 AM
Omal Bastin
On 6/19/13, 12:16 PM

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.

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

on 6/19/13, 12:18 PM

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

Omal Bastin
on 6/19/13, 12:24 PM

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

on 6/19/13, 12:28 PM
Ray Carnes
On 6/19/13, 4:45 PM

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


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 6/19/13, 5:55 AM
Seen: 2791 times
Last updated: 3/16/15, 8:10 AM