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 | etc.
Can you tell me how to start download file on click of button event.
I created new button on customer form (i.e. res_partner view and if i want to download all attachment related to that customer on single click).To do this job I created zip file in background coding in .py file which is consisting all related documents of respective customer ?
Means till now if I click on that button zip is generated but I am not able to start download of that zip file.
What can I do ?
In Python 2, use urllib2 which comes with the standard library.
response = urllib2.urlopen('http://www.odoo.com/')
html = response.read()
This is the most basic way to use the library, minus any error handling. You can also do more complex stuff such as changing headers. The documentation can be found here.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 6/24/13, 7:30 AM|
|Seen: 2537 times|
|Last updated: 8/13/15, 5:07 AM|