Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
6942 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
mrt. 15
4644
0
okt. 24
1302
2
sep. 23
2541
1
dec. 22
3345
3
jun. 22
6962