Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to change the name of printed PDF

By
Pascal Tremblay
on 12/11/14, 6:17 AM 914 views

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

1
Harsh Dhaduk
On 12/11/14, 7:14 AM

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

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

Pascal Tremblay
on 12/11/14, 7:16 AM

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

Harsh Dhaduk
on 12/11/14, 12:26 PM

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

Pascal Tremblay
on 12/11/14, 12:28 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 12/11/14, 6:17 AM
Seen: 914 times
Last updated: 3/16/15, 8:10 AM