Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
11252 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

any luck with this?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello @Ingo Devooght and @Jon Toktas,

I am also looking solution for this problem.

If you found solution then please share.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 10 18
28795
2
thg 3 15
10558
2
thg 5 25
2803
4
thg 1 25
44622
0
thg 10 24
1472