콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
7562 화면

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 ?

베스트 답변

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

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

작성자

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

베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
1
2월 23
1979
1
3월 15
5276
0
5월 23
66
2
9월 24
3583
1
1월 23
17050