Hi , i have created a xlsx file and need to open as downloadable when i click on button in python how to achieve this ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
lut 23
|
1773 | ||
|
1
mar 15
|
5047 | ||
|
0
maj 23
|
66 | ||
|
2
wrz 24
|
3214 | ||
|
1
sty 23
|
16309 |
Do you have a solution for your problem ?