Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
8769 มุมมอง

HI all,I would like to export some data that I used in my custom module, of course, data from other modules should be also accessible. After that, I would like to output it in .txt format that in certain style (using Qweb I guess?).

I don't know where to start even after searching similar question. Some answer says "change report_type="qweb-pdf"to report_type="qweb-html" will do" but its not work for me. Or like this one "https://www.odoo.com/forum/help-1/question/is-it-possible-to-make-a-file-in-txt-format-123310", but I can't fully understand the URL part, I tried to do it but nothing happen. 

Can someone tell me whats the key to do it and how to do it in details? Any hint will be useful. Very appreciated!

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

hi all, this is what I find, and its looks like is what I need, but I can't fully understand (change v8 to fit v11?) its code. Can anyone help me out? really appreciated! 

link: https://www.odoo.com/es_ES/forum/ayuda-1/question/press-a-button-and-download-a-file-how-93037

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

I would export the stuff in Excell format and then convert it to txt (you can use this kind of module: https://apps.odoo.com/apps/modules/11.0/report_xlsx/). You can also use python to extract data in any format


อวตาร
ละทิ้ง
ผู้เขียน

hi, thank you for replying. When you say using python, do you have any tutorial for that? I mean, under Odoo, using python to extract data? thx a lot!

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 15
10896
Data for relations table แก้ไขแล้ว
1
เม.ย. 24
2131
1
ส.ค. 22
2899
0
พ.ค. 17
7584
1
มี.ค. 15
4027