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

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?

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

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 6 25
5792
0
thg 9 18
2184
0
thg 12 17
2580
1
thg 9 15
4163
0
thg 3 15
2947