Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3333 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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
Awatar
Odrzuć
Autor

Tried that and didn't work.

There is no field called "print_report_name ".

Powiązane posty Odpowiedzi Widoki Czynność
1
maj 20
6308
1
paź 17
2901
0
lip 16
3348
1
cze 16
3678
3
maj 16
3913