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.

2

Printing multiple reports in one method?

By
Ingo Devooght
on 5/31/15, 2:00 PM 1,033 views

I would like to print two qweb-reports with just one button. Both reports are using different models.

For example I want to print an invoice and a picking report together. So I need to merge the following methods:

def action_invoice(self):
return self.env['report'].get_action(self, 'account.report_invoice‘)

def action_picking(self):
return self.env['report'].get_action(self, 'stock.report_picking‘)

Is there a way to combine both methods/actions in one method for binding it to a button?

1
Jon Toktas
On 7/15/16, 12:28 PM

any luck with this?

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: 5/31/15, 2:00 PM
Seen: 1033 times
Last updated: 11/3/16, 8:47 AM