Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
27481 Prikazi

Hello, I am having a hard time closing the open dialogs when I click a button to go to another form.  the dialogs open when I click on a one2many line item, then that dialog has a button which opens a form.  the problem is when i click the button to open the form, the current dialogs that are open don't close.  Can someone tell me how to close an open dialog on a button click?

Avatar
Opusti
Best Answer

Eric,

On the button click, write a method which returns:

return {'type': 'ir.actions.act_window_close'}

Thanks.

Avatar
Opusti

Hi Serpent Consulting Services Pvt. Ltd, I trying to print a report from the button and close that wizard. Any idea to achieve this.

So I have to return this to have the pdf : return self.env['report'].get_action(record_to_print, 'account.report_invoice') , but how do I close the wizard after this?

Hi Thanks for your help. It works for me.

Related Posts Odgovori Prikazi Aktivnost
3
sep. 23
2722
2
sep. 23
3860
2
dec. 21
11876
1
nov. 19
5113
2
dec. 16
13994