Download file locally in python
问题 I have a python method in OpenERP that generate a CSV file. My question is how can I set the default path of the CSV will be local path, not a path on the server. a part of my code have this with open('export_data.csv', 'wb') as csvfile: . which saves the file on the server. I want the file to be saved on the client side location. Do you have any idea on how to achieve this? the openerp built in export data function is not an option. 回答1: Using a fields.binary One common way to return a