Odoo Help

Welcome!

This community 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.

0

Print report filename

By
René Schuster
on 2/4/14, 7:35 AM 1,022 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
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.

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 2/4/14, 7:35 AM
Seen: 1022 times
Last updated: 7/19/16, 6:35 PM