コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3040 ビュー

Odoo8 - Custom pdf name when printing

I've found this OCA module:
https://www.odoo.com/apps/modules/8.0/report_custom_filename/

But it does not work and only break the reports.
After installation I get "404: Page not found!" insted of report preview.

How do I change report name without using this module?

アバター
破棄
最善の回答

Hi,

add below line in your report tab,

    print_report_name = "(object.name+'.pdf')"
eg:
<report
        id = "report_custom"
        string = "Print pdf"
        model = "model_name"
        report_type = "qweb-pdf"
        file = "module_name.report_custom"
        name = "module_name.report_custom"
        paperformat = "module_name.paperformat_a4"
        print_report_name = "(object.name+'.pdf')"
/>

Thanks
Aswini iWesabe
アバター
破棄
著作者

Tried that and didn't work.

There is no field called "print_report_name ".

関連投稿 返信 ビュー 活動
1
5月 20
6045
1
10月 17
2722
0
7月 16
3106
1
6月 16
3449
3
5月 16
3626