تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
6859 أدوات العرض

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

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

أفضل إجابة

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
PDF reports تم الحل
5
يوليو 25
2291
Wrong PDF Format تم الحل
2
مارس 24
2815
1
يناير 24
4789
0
نوفمبر 22
3029
1
أبريل 20
6933