Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
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
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/4/14, 7:35 AM|
|Seen: 1346 times|
|Last updated: 12/31/16, 5:51 AM|