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

I am using odoo version 12 and I have created a view that opens up a wizard containing a form when a button is clicked. The form allows users to input the required fields and from that data, a report is prepared and downloaded by returning an `ir.actions.report`action. 

Problem is, after the download is complete, the modal is still open prompting the user to have to click on cancel in order to close that wizard.

Is there any way of returning an `ir.actions.report` action that downloads the form and then returning another action to close the open wizard?

아바타
취소
베스트 답변

if it is to close the wizard after report printed,
return self.env['report'].get_action(self, 'report', data=data), self.next_func_toclose()

아바타
취소
관련 게시물 답글 화면 활동
3
6월 25
5748
0
9월 18
2168
0
12월 17
2553
1
9월 15
4158
0
3월 15
2926