Odoo Help

0

Print report filename

By
René Schuster
on 2/4/14, 7:35 AM 1,493 views

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.

Code:

<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>

you could try to do the reports with aeroo and openoffice :)

Francisco Castro
on 3/11/14, 7:40 AM

Have you find another solution or have my answer helped you ?

Nebras Solutions, Slim BHIRI
on 12/31/16, 5:52 AM
0
Slim BHIRI
On 7/19/16, 6:35 PM

There is a community module from OCA that makes that :

https://github.com/OCA/reporting-engine/tree/9.0/report_custom_filename

You should download all the project from this url :

https://github.com/OCA/reporting-engine

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

Question tools

1 follower(s)

Stats

Asked: 2/4/14, 7:35 AM
Seen: 1493 times
Last updated: 12/31/16, 5:51 AM