Odoo Help

0

open xlsx as download file

By
Maniganda
on 6/19/13, 5:55 AM 2,602 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
0
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

Maniganda
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

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

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

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.

Register

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)

Stats

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