تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4 الردود
11262 أدوات العرض

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
أكتوبر 18
28803
2
مارس 15
10560
2
مايو 25
2809
4
يناير 25
44635
0
أكتوبر 24
1478