Skip to Content
Menu
This question has been flagged
2 Replies
6987 Zobrazenia

I have the following wizard function that returns a notification to the client after do something:

def wizard_do_something(self):
 # do something
return {
'type': 'ir.actions.client',
'tag': 'display_notification',
'params': {
'title': 'Carga de archivos',
'message': client_message,
'sticky': True,
'target': 'current',
}


If the return is a notification, the modal won't close. It is possible to show the notification and then close the wizard modal?

Avatar
Zrušiť
Best Answer

hi, 

I find the solution using:

'next': {'type': 'ir.actions.act_window_close'},

for ex:

action= {
'type': 'ir.actions.client',
'tag': 'display_notification',
'params': {
'title': 'Title',
'message': "message",
'sticky': True, #True/False will display for few seconds if false
'next': {'type': 'ir.actions.act_window_close'},
}
}
return action

hope that could help you,

regards,

Avatar
Zrušiť
Best Answer

Hi Ian Riva B,

It is not possible to show the notification and then close the wizard modal? In odoo but I have suggestions for that if you can be changed to 'sticky': True to False, so that You can show a notification for few seconds.


How to show a notification and then close a wizard?
https://www.odoo.com

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
mar 15
4678
0
okt 24
1340
2
sep 23
2582
1
dec 22
3376
3
jún 22
7010