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

Hello there,

We are on Odoo v8.

We tried many things in last days to change the name of the printed PDF.

For example, still impossible to change these filenames for any other name : account.report_overdue.pdf or account.report_invoice.pdf

Do you still consider that it is a bug in v8 and the only solution is here http://stackoverflow.com/questions/14434846/openerp-custom-report-filename ????

Thanks for your idea

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

Hi Pascal,

You can change PDF name but you have to do some customization in following file. but be careful you should customize file to create extra module and inherit that class.

In Addons have report module in report->controllers->main.py file is there line no 96 method name is report_download(). in that find "reportname" variable.

you can do any thing from there.

 

Best,

Harsh Dhaduk

Ảnh đại diện
Huỷ bỏ
Tác giả

So, would you say that this is a way to solve a bug in Odoo?

This is a way to change PDF report and it's not a bug in Odoo.

Tác giả

I will come back later with an other question. Last one is not clear.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
4750
1
thg 9 23
7070
0
thg 9 23
29
0
thg 9 22
2803
1
thg 5 17
5231