CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
About This Community
Odoo Training Center
|Asked: 2/4/14, 7:35 AM|
|Seen: 1373 times|
|Last updated: 12/31/16, 5:51 AM|