How can I get a dynamic filename for pdf reports, using xsl:rml?
I've tried to set the attachment field for the report declaration, but with no success. Mybe since I'm not really saving the report as an attachment, but printing it as pdf.
Any help is highly appreciated.
<report id="timesheet_monthly_report" string="Timesheet" model="timesheet.timesheet" name="timesheet.monthly.report" xsl="timesheet/report/timesheet_monthly_report.xsl" auto="False" menu="False" usage="default" attachment="(object.name or '').replace('/','')"> </report>
There is a community module from OCA that makes that :
You should download all the project from this url :
And don't forget to choose your Odoo version from the repository branch.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/4/14, 7:35 AM|
|Seen: 1022 times|
|Last updated: 7/19/16, 6:35 PM|