Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
6901 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Mar 15
4633
0
Okt 24
1288
2
Sep 23
2530
1
Des 22
3333
3
Jun 22
6946