Skip to Content
Menú
This question has been flagged
4 Respostes
11134 Vistes

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?

Avatar
Descartar
Best Answer

any luck with this?

Avatar
Descartar
Best Answer

Hi,


If you are looking to Print multiple report in single pdf or to merge and if both reports are different models , you can follow as below method.

First for ensure you have relation between two models.


xpath new object for newly report after "t" tag, then t-call the report.

Avatar
Descartar
Best Answer

Hello @Ingo Devooght and @Jon Toktas,

I am also looking solution for this problem.

If you found solution then please share.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
d’oct. 18
28647
2
de març 15
10475
2
de maig 25
2728
4
de gen. 25
44357
0
d’oct. 24
1382