Odoo Help


This community 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.


open xlsx as download file

on 6/19/13, 5:55 AM 2,098 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

--Omal Bastin--
| 6 6 8
Kochi, Kerala, India
--Omal Bastin--

Swiming deep into openERP/ODOO

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

--Ray Carnes--
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

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

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


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


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