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.

3

Open PDF format report file name is not proper ?

By
Nirav Jani
on 10/14/14, 9:11 AM 909 views

Hello,

I created report it is open from wizard on open PDF file

name like : report_name.pdf i want to change the name.

Thank in Advance.

 

2
Piyush Suva
On 10/15/14, 2:34 AM

On Method of Wizard please add the name in return value.

for Example:

 def _print_report(self, cr, uid, ids, data, context=None):
        if context is None:
            context = {}
        data = self.pre_print_report(cr, uid, ids, data, context=context)
        data['form'].update(self.read(cr, uid, ids, ['initial_balance', 'filter', 'page_split', 'amount_currency'])[0])
        return {
                'type': 'ir.actions.report.xml',
                'report_name': 'product_ledger',
                'datas': data, 

              'name': 'My REPORT NAME'  #Give Your Report name Here.

        }

 

1
Jadav Vishal V
On 10/15/14, 3:39 AM

Yes, you are rights, it's working.

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

2 follower(s)

Stats

Asked: 10/14/14, 9:11 AM
Seen: 909 times
Last updated: 3/16/15, 8:10 AM