跳至内容
菜单
此问题已终结
4 回复
11221 查看

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?

形象
丢弃
最佳答案

any luck with this?

形象
丢弃
最佳答案

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.

形象
丢弃
最佳答案

Hello @Ingo Devooght and @Jon Toktas,

I am also looking solution for this problem.

If you found solution then please share.

形象
丢弃
相关帖文 回复 查看 活动
2
10月 18
28757
2
3月 15
10546
2
5月 25
2791
4
1月 25
44561
0
10月 24
1458