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:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
3
Replies
7749
Views
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Sep 16
|
2254 | ||
Currency in Odoo 9 ecommerce
Solved
|
|
3
Jan 16
|
4920 | |
|
3
Dec 15
|
3205 | ||
|
0
Jan 17
|
3191 | ||
|
0
Jun 16
|
2744 |