İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4762 Görünümler

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?

Avatar
Vazgeç
En İyi Yanı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()

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Haz 25
5793
0
Eyl 18
2184
0
Ara 17
2582
1
Eyl 15
4167
0
Mar 15
2953