I\'m making reports using qWeb in Odoo 8. Those generated PDF files are saved with a \"default\" name. I would like to set a specific name to every generated file (not after
addons\report\controllers\main.py
Line : 127
response.headers.add('Content-Disposition', 'attachment; filename=%s.pdf;' % reportname)
change it with
invoicename="ma_facture" #create a variable you can add date for example stfftime("%d-%m-%Y")
response.headers.add('Content-Disposition', 'attachment; filename=%s.pdf;' % invoicename)