Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
6930 Zobrazení

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šit
Nejlepší odpověď

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šit
Nejlepší odpověď

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šit
Related Posts Odpovědi Zobrazení Aktivita
0
bře 15
4640
0
říj 24
1299
2
zář 23
2538
1
pro 22
3340
3
čvn 22
6959