Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
8682 Переглядів

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?

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
вер. 16
2834
3
січ. 16
5716
3
груд. 15
4023
0
січ. 17
4067
0
черв. 16
3343