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 file was saved, but in "generation" time).
Is that possible? If it is, how to do it?
Thanks in advance.
addons\report\controllers\main.py
Line : 127
change it with
You can give dynamic report name using configuration, but it will apply when you print one report.
Below is the example to Print custom name in report.Create one field in ir.actions.report.xml, in which user can configure report name.
Now you need to create two files.
Report Controller
2.Report.py
Odoo community Providing us a default module for report custom name. you can directly install this module and set report name like : ${o.name}
Here o means your record.
Below is a link of odoo community module for V8 and V9.
https://www.odoo.com/apps/modules/9.0/report_custom_filename/
https://www.odoo.com/apps/modules/8.0/report_custom_filename/ This may help you.