Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
11303 มุมมอง

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด


Try this modules:

Print Multiple Reports In Single File

Print Multiple Invoice Reports To Single File

Print Multiple Sales Reports To Single File


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Print a report from python method แก้ไขแล้ว
2
ต.ค. 18
28853
2
มี.ค. 15
10572
2
พ.ค. 25
2826
4
ม.ค. 25
44673
0
ต.ค. 24
1505