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

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
يونيو 25
5741
0
سبتمبر 18
2157
0
ديسمبر 17
2548
1
سبتمبر 15
4157
0
مارس 15
2926