Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3331 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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
Ảnh đại diện
Huỷ bỏ
Tác giả

Tried that and didn't work.

There is no field called "print_report_name ".

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 20
6307
1
thg 10 17
2898
0
thg 7 16
3346
1
thg 6 16
3678
3
thg 5 16
3911