콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
11484 화면

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
29061
2
3월 15
10714
2
5월 25
2960
4
1월 25
44957
0
10월 24
1684