I have a module in which i can choose a product. Now i want to get that product and generate a txt file with the product information by clicking a button. Is it possible?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
3
回覆
8684
瀏覽次數
Yes, create a button and in the function just create the text file like
file = open("newfile.txt", "w") file.write("hello world in the new file") file.write("and another line") file.close()
then just add all you need.
Kind Regards.
Gustavo, i try your answer, and odoo tells me that:
creafich() takes at least 4 arguments (1 given)
Hi, hope you it help
https://www.odoo.com/es_ES/forum/ayuda-1/question/not-able-to-create-simple-txt-report-in-odoo-101033#answer-101052
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
0
9月 16
|
2836 | ||
|
3
1月 16
|
5717 | ||
|
3
12月 15
|
4029 | ||
|
0
1月 17
|
4067 | ||
|
0
6月 16
|
3343 |